Issue with formula specification
Posted: Wed Apr 20, 2016 9:37 am
Hi all,
I am having some troubles passing a formula to MLwiN. I have a 3-level repeated measures model with random intercept and slopes at levels 3 (Group) and 2 (ID) and a fixed quadratic time component. I have tried both:
Returning:
Error in eval(expr, envir, enclos) : object 'Median' not found
And:
Returning:
Error in parse(text = x, keep.source = FALSE) :
<text>:2:0: unexpected end of input
1: ~
...^
What am I doing incorrectly?
Thank you and all the best,
k.
I am having some troubles passing a formula to MLwiN. I have a 3-level repeated measures model with random intercept and slopes at levels 3 (Group) and 2 (ID) and a fixed quadratic time component. I have tried both:
Code: Select all
> runMLwiN(Median.yr ~ 1 + poly(Time,2) + (1 + Time |Group) + (1 + Time |ID) + (1 |Time), data = dataset)
Error in eval(expr, envir, enclos) : object 'Median' not found
And:
Code: Select all
> runMLwiN(Formula = "Median.yr ~ 1 + poly(Time,2) + (1 + Time |Group) + (1 + Time |ID) + (1 |Time)", data = dataset)
Error in parse(text = x, keep.source = FALSE) :
<text>:2:0: unexpected end of input
1: ~
...^
What am I doing incorrectly?
Thank you and all the best,
k.