View source: R/mlts_standardized.R
mlts_standardized | R Documentation |
Get Standardized Estimates for an mlts Model
mlts_standardized(
object,
what = c("between", "within", "both"),
digits = 3,
prob = 0.95,
add_cluster_std = FALSE
)
object |
|
what |
character. Get between-level standardized estimates ( |
digits |
Number of digits. Default is 3. |
prob |
A value between 0 and 1 to indicate the width of the credible interval. Default is .95. |
add_cluster_std |
logical. If |
A list
containing between- and within-level standardized parameters.
# build simple vector-autoregressive mlts model for two time-series variables
var_model <- mlts_model(q = 2)
# fit model with (artificial) dataset ts_data
fit <- mlts_fit(
model = var_model,
data = ts_data,
ts = c("Y1", "Y2"), # time-series variables
id = "ID", # identifier variable
time = "time", # time variable
tinterval = 1, # interval for approximation of continuous-time dynamic model,
monitor_person_pars = TRUE # person parameters need to be sampled for standardization
)
# inspect standardized parameter estimates
mlts_standardized(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.