Hi
I am having difficulty with a margins plot in Stata 14.1. I measured bone size for 3 bones at different ages. My commands were:
xtmixed size age bone bone#c.age
margins bone, dydx (age)
quietly margins bone, at(age=(0(1)10))
All the above worked.
I got an error message with the following command:
marginsplot, xdimension(at(yplage)) noci recast(line)
Error message: invalid at() dimension information; using variable bone as a factor variable and a regular variable is not supported
I understand that this is also a linear prediction. What would be the steps to fit a quadratic to the data?
With thanks
Ansuyah
I am having difficulty with a margins plot in Stata 14.1. I measured bone size for 3 bones at different ages. My commands were:
xtmixed size age bone bone#c.age
margins bone, dydx (age)
quietly margins bone, at(age=(0(1)10))
All the above worked.
I got an error message with the following command:
marginsplot, xdimension(at(yplage)) noci recast(line)
Error message: invalid at() dimension information; using variable bone as a factor variable and a regular variable is not supported
I understand that this is also a linear prediction. What would be the steps to fit a quadratic to the data?
With thanks
Ansuyah
Comment