IRLS_EM | R Documentation |
Iterative Reweighted Least Squares algorithm for optimizing the parameters in the M-step of the EM algorithm.
IRLS_EM(X, gamma, Y, beta, family, eps_IRLS, max_N)
X |
A design matrix of size n x p. |
gamma |
A vector of size n specifying the posterior probability of the hidden states. |
Y |
A vector of observations of size n. |
beta |
A vector of size p + 1 specifying the GLM parameters. |
family |
The family of the response. |
eps_IRLS |
convergence tolerance in the iteratively reweighted least squares step. |
max_N |
the maximal number of IRLS iterations. |
A vector representing the estimates of beta.
## Not run:
# Example usage of the function
IRLS_EM_one_step <- IRLS_EM_one(X,
gamma,
Y,
beta,
family)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.