fit_lcm_tree | R Documentation |
moretrees
)Fit latent class model with tree-structured shrinkage over the observations
(this function largely follows Thomas, E.'s well-written package moretrees
)
fit_lcm_tree( dsgn, vi_params_init, hyperparams_init, random_init, random_init_vals, tol, tol_hyper, max_iter, print_freq, quiet, plot_fig, shared_tau, update_hyper_freq, hyper_fixed )
dsgn |
a list of data organized according to the tree (see |
vi_params_init, hyperparams_init, random_init, random_init_vals, tol, tol_hyper, max_iter, print_freq, quiet, plot_fig, shared_tau, update_hyper_freq, hyper_fixed |
initial values and updating protocols. Explained more in the wrapper function |
a list with model updates. Because the variational posterior is comprised of familiar distributional forms that can be determined by the moments, the returned values are these moments:
vi_params
named list of final variational parameter estimates
hyperparams
named list of final hyperparameter estimates
hyper_fixed
named list of fixed hyperparameters
ELBO_track
numeric vector containing the values of the objective function (ELBO) at the end of every iteration
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.