Appreciate if someone of you help me to convert below SAS code to R:
proc mixed;
model Y=Group X / solution;
repeated / local=exp(X X2);
run;
I think this code will work, but I have a suggestion
library(nlme)
gls(Y~Group + X,
data=df,
weights = varExp(form = ~ X+ I(X^2)))
New contributor
Анна Власенко is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.