| get_data | R Documentation |
Returns the input data to the Stan model. Mostly useful for debugging.
get_data(x, ...)
## S3 method for class 'dynamiteformula'
get_data(x, data, time, group = NULL, ...)
## S3 method for class 'dynamitefit'
get_data(x, ...)
x |
[ |
... |
Ignored. |
data |
[ |
time |
[ |
group |
[ |
A list containing the input data to Stan.
Model outputs
as.data.frame.dynamitefit(),
as.data.table.dynamitefit(),
as_draws_df.dynamitefit(),
coef.dynamitefit(),
confint.dynamitefit(),
dynamite(),
get_code(),
get_parameter_dims(),
get_parameter_names(),
get_parameter_types(),
ndraws.dynamitefit(),
nobs.dynamitefit()
data.table::setDTthreads(1) # For CRAN
d <- data.frame(y = rnorm(10), x = 1:10, time = 1:10, id = 1)
str(get_data(obs(y ~ x, family = "gaussian"),
data = d, time = "time", group = "id"
))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.