- N
Vector of population sizes, one for each group.
- ctx
A model formula containing names of group-level, or
contextual, covariates on the right-hand side.
- binary
A model formula containing names of individual-level
binary covariates on the right-hand side.
- data
Data frame containing the group-level variables given in
ctx
. It should also contain the variables given in binary
, interpreted as
proportions of individuals exposed to each of the binary covariates.
- m
A data frame with length(N)
rows, containing the
within-area means of a set of normally-distributed continuous
covariates.
- S
A data frame with length(N)
rows, containing the
within-area standard deviations of a set of normally-distributed
continuous covariates. For the moment they are assumed to be
independent.
- cross
A matrix of cross-classifications of individuals in the
area between categories of multiple binary or categorical covariates, defined in
the same way as in eco
. If this is not supplied, the
binary covariates are assumed to be independent, and the probability
of an individual having a certain combination of covariates is
calculated as the product of the relevant marginal probabilities.
- covnames
Vector of names of the covariates, if cross
is supplied. Otherwise the names are taken from binary
.
- ncats
Numeric vector of the number of levels of the
covariates used in cross
.
- mu
Regression intercept on the logit scale.
- alpha.c
Vector of coefficients for the group-level
covariates in the underlying logistic regression, corresponding to
the columns of ctx
.
- alpha
Vector of coefficients for the individual-level
binary covariates, corresponding to the columns of
phi
. Interactions are not currently supported.
- beta
Vector of coefficients for the individual-level
continuous covariates, corresponding to the columns of m
or
S
. Interactions are not currently supported.
- sig
Random-effects standard deviation.
- strata
A matrix with rows representing groups, and columns
representing strata occupancy probabilities.
- pstrata
A vector with one element for each stratum, giving
the assumed baseline outcome probabilities for the strata. The
logits of pstrata
are used as offsets in the logistic regression.
- isam
Number of individuals per group to retain in the
individual-level data.