data.table::setDTthreads(1) # For CRAN
d <- data.frame(y = rnorm(10), x = 1:10, time = 1:10, id = 1)
cat(get_code(obs(y ~ x, family = "gaussian"),
data = d, time = "time", group = "id"
))
# same as
cat(dynamite(obs(y ~ x, family = "gaussian"),
data = d, time = "time", group = "id",
debug = list(model_code = TRUE, no_compile = TRUE)
)$model_code)
Run the code above in your browser using DataLab