############################
# Written by: Stephanie Chen (stchen3@ncsu.edu)
# Purpose: Fit the null model (linear random effects) to data
# Updated: Aug 4, 2018
fitNull <- function(data) {
try(nlme::lme(.value ~ 1, random = list(.id = nlme::pdSymm(~ 1 + .index)), data = data), silent = T)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.