Function glmmf
estimates GLMM with latent factors using methods based on state space modelling.
1 2 3 4 5 6 7 | glmmf2(group, response, common.fixed, distinct.fixed, random, nfactors = 0,
data, distribution = c("gaussian", "poisson", "binomial", "gamma",
"negative binomial"), u, correlating.effects = TRUE,
common.dispersion = TRUE, init.random.cov, init.dispersion, init.factor,
init.theta = NULL, nsim = 0, return.model = TRUE, maxiter = 50,
maxiter2 = 10, convtol = 1e-08, estimate = TRUE,
tol = .Machine$double.eps^0.5, trace = 0, gradient = TRUE, ...)
|
group |
Name of the grouping variable in data. Only one grouping variable is allowed and the group sizes must be equal. In case of unequal group sizes, patch missing rows with NA's. |
response |
Name of the response variable in data. |
common.fixed |
formula for common fixed effects. LHS of the formula is ignored if present. |
distinct.fixed |
Formula for distinct fixed effects i.e. each group has separate regression
coefficient. This formula cannot contain variables which are already present in
|
random |
Formula for random effects. LHS of the formula is ignored if present. |
data |
Data frame containing the variables in the model. Must contain all variables used formulas and
variables defined in |
distribution |
Distribution of observations. Possible choices are "gaussian", "poisson", "binomial", "gamma and "negative binomial". Default is "gaussian". |
correlating.effects |
Logical. Default is TRUE. |
init.dispersion |
Initial values for dispersion paremeters for Gaussian, negative binomial and Gamma distributions. |
nsim |
Integer. Number of independent samples used in importance sampling. Default is 0, which corresponds to Laplace approximation. Not yet implemented. |
maxiter |
Integer. Number of iterations for in iterative weighted least squares. |
init.random |
Initial values for random effect covariances. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.