- ...
names of the random effects (variables in the dataset) to be used to create a general variance structure. For example, for 2 random effects (variables); mom and progeny, a model specified as:
gvsr(mom, progeny)
will create a variance structure of the form:
| sigma2.m sigma.pm |
| sigma.pm sigma2.p |
where not only variance components for each random effect will be estimated but also the covariance component between the 2 random effects is estimated. The user can also provide a numeric vector or matrix to be considered the design matrix for the ith random effect. More than two random effects can be provided.
- Gu
list of matrices with the known variance-covariance values for the levels of the different random effects provided in the "..." argument (i.e. relationship matrix among individuals or any other known covariance matrix). If NULL, then an identity matrix is assumed. For example, a model with 2 random effects with covariance structure should be provided as:
gvsr(mom, progeny, Gu=list(Am,Ap))
where Am
and Ap
are the relationship matrices for the random effects for mom and progeny respectively.
- Guc
matrix with the constraints for the u random effects. This is used to specify which variance and covariance parameters between the 1 to 1 combinations of random effects should be estimated. For example, for 2 random effects the expected variance-covariance matrix expected to be estimated (when the default Guc=NULL) is and unstructured model:
| sigma2.m sigma.pm |
| sigma.pm sigma2.p |
but the user can constrain which parameters should be estimated. Providing:
Guc=diag(2)
would fit:
| sigma2.m ...0... |
| ...0... sigma2.p |
- Gti
matrix with dimensions t x t (t equal to number of traits) with initial values of the variance-covariance components for the random effect specified in the .... argument. If the value is NULL the program will provide the initial values.
- Gtc
matrix with dimensions t x t (t equal to number of traits) of constraints for the variance-covariance components for the random effect specified in the ... argument according to the following rules:
0: not to be estimated
1: estimated and constrained to be positive (i.e. variance component)
2: estimated and unconstrained (can be negative or positive, i.e. covariance component)
3: not to be estimated but fixed (value has to be provided in the Gti argument)
In the multi-response scenario if the user doesn't specify this argument the default is to build an unstructured matrix (using the unsm
() function). This argument needs to be used wisely since some covariance among responses may not make sense. Useful functions to specify constraints are; diag
(), unsm
(), fixm
().
- form
an additional structure to specify a kronecker product on top of the general covariance structure defined in the ... argument.