simple_EM | R Documentation |
Use ridge penalty to prevent separation. Not be called by user!
EM_prelim_logit(X, Z, s, pg_b, iter, ridge = 2)
EM_prelim_nb(X, Z, y, est_r, iter, ridge = 2)
X |
Design matrix |
Z |
RE design matrix |
s |
(y_i - n_i)/2 for polya-gamma input |
pg_b |
n_i as vector input |
iter |
iterations |
ridge |
variance of ridge prior |
y |
Raw observed y_i |
est_r |
Initial r value (not updated!) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.