Description Usage Arguments Value
This function is mainly used within pglmm
but can also be used independently to
prepare a list of random effects, which then can be updated by users for more complex models.
1 2 3 4 5 6 7 8 9 10 11 |
formula |
A two-sided linear formula object describing the mixed effects of the model. To specify that a random term should have phylogenetic covariance matrix along
with non-phylogenetic one, add Note that correlated random terms are not allowed. For example,
|
data |
A |
cov_ranef |
A named list of covariance matrices of random terms. The names should be the
group variables that are used as random terms with specified covariance matrices
(without the two underscores, e.g. |
repulsion |
When there are nested random terms specified, |
prep.re.effects |
Whether to prepare random effects for users. |
family |
Either "gaussian" for a Linear Mixed Model, or
"binomial" or "poisson" for Generalized Linear Mixed Models.
"family" should be specified as a character string (i.e., quoted). For binomial and
Poisson data, we use the canonical logit and log link functions, respectively.
Binomial data can be either presence/absence, or a two-column array of 'successes' and 'failures'.
For both binomial and Poisson data, we add an observation-level
random term by default via |
add.obs.re |
Whether to add an observation-level random term for binomial or Poisson
distributions. Normally it would be a good idea to add this to account for overdispersion,
so |
bayes |
Whether to fit a Bayesian version of the PGLMM using |
bayes_nested_matrix_as_list |
For |
A list with updated formula, random.effects, and updated cov_ranef.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.