| .safeguard_update_cat_em | R Documentation |
Safeguard M-step update via step-halving
.safeguard_update_cat_em(
y,
order,
old_marginal,
old_transition,
new_marginal,
new_transition,
blocks_id,
homogeneous,
c,
logL_old,
n_time,
n_blocks
)
y |
Data matrix. |
order |
Model order. |
old_marginal |
Previous marginal parameters. |
old_transition |
Previous transition parameters. |
new_marginal |
Proposed marginal parameters from M-step. |
new_transition |
Proposed transition parameters from M-step. |
blocks_id |
Normalized block ids. |
homogeneous |
Whether parameters are shared across blocks. |
c |
Number of categories. |
logL_old |
Observed-data log-likelihood at old parameters. |
n_time |
Number of time points. |
n_blocks |
Number of blocks. |
List with safeguarded parameters, acceptance flag, and step size.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.