Skip to main content

Questions tagged [splines]

Splines are flexible functions, knit together from polynomial parts, used for approximation or smoothing. This tag is for any kind of spline (eg, B-splines, regression splines, thin-plate splines, etc).

Filter by
Sorted by
Tagged with
2 votes
1 answer
61 views

I’m analyzing longitudinal data with three timepoints: Time 0 = baseline Time 12 = post-treatment Time 24 = follow-up Because the treatment occurs at Time 12, I’m modeling a potential change in ...
AndroidPandroid's user avatar
6 votes
1 answer
166 views

How do I calculate confidence intervals for a spline function after changing the reference? I would like to plot the spline with reference at age=52 along with the confidence limits. ...
Pam G's user avatar
  • 95
5 votes
0 answers
117 views

I delved a bit deeper lately into GAMs and I have the feeling, the more I go into detail the more questions are popping up (well, as usual, I'd say). I recognized here and there, that there are plenty ...
2 votes
0 answers
65 views

I’m fitting a binary logistic regression model that includes a continuous variable modeled using natural splines, and I’ve also included an interaction between that spline variable and another ...
Konstantinos Gkirgkiris's user avatar
5 votes
1 answer
225 views

I’m trying to understand how natural cubic splines (splines::ns) and restricted cubic splines (rms::rcs) handle knots — ...
Konstantinos Gkirgkiris's user avatar
1 vote
1 answer
51 views

The question: I obtained a dose-response function (predictor vs relative risk) through meta-analysis using the dosresmeta package for R. The package applies a random effects model (REML)and I fitted a ...
Jade's user avatar
  • 413
2 votes
1 answer
77 views

Design: 18 participants total (12 intervention, 6 control). Intervention group consumes a nutritional supplement once daily for 5 consecutive days; control group abstains throughout. Outcomes are ...
anny's user avatar
  • 31
5 votes
2 answers
177 views

I am modeling a CNS cancer survival data and my cox-ph model violates the PH assumption on most of the variables. Therefore I decided to model the time dependent coefficients accordingly, I thought ...
Kavalali's user avatar
  • 373
5 votes
1 answer
235 views

I'm fitting a 3-part linear spline using the lspline package to model a time series with two known disruption periods. The knots are fixed at the disruption periods ...
Dolby's user avatar
  • 225
3 votes
1 answer
71 views

I am performing a regression analysis using a generalized additive model, 2 spline terms and 12 linear terms. When I use the summary(gam_model) command, I get some F statistics for my 2 spline terms. ...
sandgrove43's user avatar
0 votes
0 answers
73 views

I want to build a prediction model of a continuous outcome Y. I have ~50 predictors that are count variables (number of hospitalizations by cause, number of drugs dispensed by type of drug). I was ...
Alex's user avatar
  • 301
3 votes
1 answer
81 views

I am trying to determine which variables affect the likelihood of lumpfish eating salmon lice and which variables predict the number of lice eaten. My data are highly zero-inflated, so I decided to ...
sloe's user avatar
  • 31
1 vote
0 answers
51 views

I ran multiple imputation in R using mice. Only one categorical variable had missingness and I specified the imputation model to imputate it using ...
cheddar97's user avatar
2 votes
1 answer
147 views

I need to fit multiple constrained 3-part linear splines to nighttime lights time series data to model responses to disruptions (knots) with known start/end dates. Each spline has three segments: fa: ...
Dolby's user avatar
  • 225
3 votes
2 answers
218 views

Using R survival package, I built a Cox model (discussed here) with pspline() terms. This is a large model with about 900,000 ...
Thomas's user avatar
  • 600

15 30 50 per page
1
2 3 4 5
46