'I am trying to code this model as an lmer model

enter image description here

This is what I have. Is this correct?

fit1 = lmer(wt~age+parity+ age*parity + (1+age|id),data=parity_set,control = lmerControl(optimizer ="Nelder_Mead"))



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source