buildGLMMF: Build Generalized Linear Mixed-Effects Model with Latent...

Description Usage Arguments

Description

Function buildGLMMF builds GLMM with latent factors using methods based on state space modelling.

Usage

1
2
3
4
buildGLMMF(group, response, common.fixed, distinct.fixed, random,
  nfactors = 0, data, distribution = c("gaussian", "poisson", "binomial",
  "gamma", "negative binomial"), u, random.cov, factors,
  tol = .Machine$double.eps^0.5)

Arguments

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 common.fixed or random formulas, as in that case the model would not be identifiable. LHS of the formula is ignored if present.

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 group and response

distribution

Character. Possible values are "gaussian", "poisson", "binomial", "negative binomial" and "gamma". Default is "gaussian".


helske/GLMMF documentation built on May 17, 2019, 3:38 p.m.