Dear Forumgoers,
I have a mixed effects model in which individuals (designated by "id") are measured on X and Y five days in a row which includes a quadratic term for X. I am interested in calculating the X value for the turning point at each of the five day values. The model includes random intercepts and slopes.
I was able to calculate the turning point for the initial model before adding the interaction term as follows:
However, I am not sure how to adjust this code to get the predicted turning points for each value of "day" (which ranges 1 to 5) when I add the interaction as follows.
It seems like I can adjust the nlcom prediction, but I am unsure how. Can anyone clarify?
Thanks,
Matt
I have a mixed effects model in which individuals (designated by "id") are measured on X and Y five days in a row which includes a quadratic term for X. I am interested in calculating the X value for the turning point at each of the five day values. The model includes random intercepts and slopes.
I was able to calculate the turning point for the initial model before adding the interaction term as follows:
Code:
mixed y c.x##c.x i.day || id: c.x nlcom -_b[c.x]/(2*_b[c.x#c.x])
Code:
mixed y c.x##c.x##i.day || id: c.x
Thanks,
Matt
Comment