as.data.table.dynamitefit {dynamite} | R Documentation |
Extract Samples From a dynamitefit
Object as a Data Table
Description
Provides a data.table
representation of the posterior samples of the model
parameters. See as.data.frame.dynamitefit()
for details.
Usage
## S3 method for class 'dynamitefit'
as.data.table(
x,
keep.rownames = FALSE,
row.names = NULL,
optional = FALSE,
types = NULL,
parameters = NULL,
responses = NULL,
times = NULL,
groups = NULL,
summary = FALSE,
probs = c(0.05, 0.95),
include_fixed = TRUE,
...
)
Arguments
x |
[ |
keep.rownames |
[ |
row.names |
Ignored. |
optional |
Ignored. |
types |
[ |
parameters |
[ |
responses |
[ |
times |
[ |
groups |
[ |
summary |
[ |
probs |
[ |
include_fixed |
[ |
... |
Ignored. |
Value
A data.table
containing either samples or summary statistics of
the model parameters.
See Also
Model outputs
as.data.frame.dynamitefit()
,
as_draws_df.dynamitefit()
,
coef.dynamitefit()
,
confint.dynamitefit()
,
dynamite()
,
get_code()
,
get_data()
,
get_parameter_dims()
,
get_parameter_names()
,
get_parameter_types()
,
ndraws.dynamitefit()
,
nobs.dynamitefit()
Examples
data.table::setDTthreads(1) # For CRAN
as.data.table(
gaussian_example_fit,
responses = "y",
types = "beta",
summary = FALSE
)