extract_betas | R Documentation |
This function extracts beta coefficients from a model parameter object, separating them into beta1 and beta2 components.
extract_betas(
params_result,
params = c("gamma", "log_sigma2", "log_phi", "log_tau1")
)
params_result |
A model parameter object containing parameter estimates |
params |
A character vector specifying parameter names, defaults to c("gamma", "log_sigma2", "log_phi", "log_tau1") |
The function assumes the parameter vector contains beta coefficients followed by other model parameters. It splits the betas into two equal groups after removing the last 4 parameters.
A list with two components:
beta1: First set of beta coefficients
beta2: Second set of beta coefficients
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.