-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble with specifying integral form for cumulative effects model #26
Comments
Sorry, not sure how I've managed to strikethrough my iform. It should read
|
Thanks! Managed to delete it when copy/pasting code, but adding an I() operation got it to work. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Dr. Rizopoulos, thanks again for all the help!
I am trying to fit a cumulative effects model based on the following lme object
<lme_fit<-lme(var~ns(time,3)+cov,random=~time|ID,
data=data,control=lmeControl(opt="optim"))>
I haven't been able to get the derivForm argument right though. I've been trying
<iform<-list(fixed=
-1+time+ins(time,3)+(cov*time),indFixed=c(1:5),-1+time+time^2/2,indRandom=c(1:2))>random=
and getting an error "Error in terms.formula(derivForm$random) : invalid model formula in ExtractVars"
Would you be able to provide any guidance as to what the correct syntax would be?
Thanks!
The text was updated successfully, but these errors were encountered: