compute_params: compute model summaries from the model outputs

View source: R/summarize_results.R

compute_paramsR Documentation

compute model summaries from the model outputs

Description

This function is used in the wrapper function lcm_tree()

Usage

compute_params(mod, dsgn, ci_level = 0.95, B = 10000)

Arguments

mod

output from fit_lcm_tree()

dsgn

output from design_tree()

ci_level

credible interval level; default to 0.95

B

Default is 10000; the number of random multivariate Gaussian eta (K-1 dimensional) for producing posterior summaries of the stick-breaking transformed probabilities (K dimensional)

Value

a list

Named("beta_est")=beta_est, Named("beta_sd_est")=beta_sd_est, Named("beta_cil")=beta_cil, Named("beta_ciu")=beta_ciu, Named("eta_est")=eta_est, Named("eta_var_est")=eta_var_est, Named("eta_cil")=eta_cil, Named("eta_ciu")=eta_ciu

prob_est$pi prob_est$theta prob_est$group prob_est$members prob_est$n_obs prob_est$theta_collapsed prob_est$pi_collapsed

See Also

get_est_cpp()


zhenkewu/lotR documentation built on April 24, 2022, 2:36 a.m.