Re: [R] A question on modeling brain growth using GAM

2017-04-07 Thread Leon Lee
tructed a data frame with all the time points for all subjects and fed it into the predict.gam() function. If I only want to get the CI for the fixed effect only for the derivatives, what should I change here? Many thanks in advance! L On Thu, Apr 6, 2017 at 2:16 PM, Leon Lee wrote: > Hi, Simon &

Re: [R] A question on modeling brain growth using GAM

2017-04-07 Thread Leon Lee
m effects with a >> common variance (to be estimated). In principle this works with any number >> of arguments to s(...,bs="re"). >> >> See ?random.effects (and its linked help files) in mgcv for more. >> >> There are mechanisms for allowing random smooth

Re: [R] A question on modeling brain growth using GAM

2017-03-30 Thread Leon Lee
dels list, do you mind sending me a link? Thank you! Longchuan On Tue, Mar 28, 2017 at 4:28 PM, David Winsemius wrote: > > > On Mar 28, 2017, at 9:32 AM, Leon Lee wrote: > > > > Hi, R experts > > > > I am new to R & GAM toolbox and would like to get inputs f

[R] A question on modeling brain growth using GAM

2017-03-28 Thread Leon Lee
Hi, R experts I am new to R & GAM toolbox and would like to get inputs from you all on my models. The question I have is as follows: I have 30 subjects with each subject being scanned from one to three times in the first year of life. The brain volume from each scan was measured. The scan time was