我安装了一个模型,其中:
Y~A + A ^ 2 + B + mixed.effect(C)
Y是连续的A是连续的B实际上指的是DAY,目前看起来像这样:
Levels: 1 < 2 < 3 < 4 < 5 < 6 < 7 < 8 < 9 < 11 < 12
Run Code Online (Sandbox Code Playgroud)
我可以轻松地更改数据类型,但我不确定将B视为数字,因子或有序因子是否更合适.AND当被视为数字或有序因子时,我不太清楚如何解释输出.
当被视为有序因子时,summary(my.model)输出如下内容:
Linear mixed model fit by REML ['lmerMod']
Formula: Y ~ A + I(A^2) + B + (1 | mixed.effect.C)
Fixed effects:
Estimate Std. Error t value
(Intercept) 19.04821 0.40926 46.54
A -151.01643 7.19035 -21.00
I(A^2) 457.19856 31.77830 14.39
B.L -3.00811 0.29688 -10.13
B.Q -0.12105 0.24561 …Run Code Online (Sandbox Code Playgroud)