Skip to content

Instantly share code, notes, and snippets.

@jcheong0428
Created March 20, 2021 05:27
Show Gist options
  • Save jcheong0428/8344426284d9a0cf758a9e6dc826cd06 to your computer and use it in GitHub Desktop.
Save jcheong0428/8344426284d9a0cf758a9e6dc826cd06 to your computer and use it in GitHub Desktop.
LMER in Rpy2 with input and outputs from notebook
%%R -i data -o betas
m<-lmer('Weight ~ Time + (1+Time|Pig)', data=data)
print(summary(m))
betas <- fixef(m)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment