| errorVar {skewlmm} | R Documentation |
Error scale matrix associated with times
Description
It returns a scale matrix associated with the error term at time times.
Can be applied to a smn.lmm or smsn.lmm object or to a specific dependence structure with chosen parameter values.
Usage
errorVar(times, object = NULL, sigma2 = NULL, depStruct = NULL,
phi = NULL)
Arguments
times |
A vector containing the times for which the matrix should be calculated. |
object |
A smn.lmm or smsn.lmm object for which the variance should be extracted. |
sigma2 |
Common variance parameter, such that |
depStruct |
Dependence structure. |
phi |
Parameter vector indexing the dependence structure. Only evaluated if object |
Value
Matrix of dimension length(times).
Author(s)
Fernanda L. Schumacher, Larissa A. Matos and Victor H. Lachos
References
Schumacher, F. L., Lachos, V. H., and Matos, L. A. (2021). Scale mixture of skew-normal linear mixed models with within-subject serial dependence. Statistics in Medicine 40(7), 1790-1810.
See Also
Examples
fm1 = smsn.lmm(distance ~ age+Sex, data=nlme::Orthodont, groupVar="Subject")
errorVar(times=1:4,fm1)
#
errorVar(times=1:5, sigma2=1, depStruct="ARp", phi=.5)
errorVar(times=1:5, sigma2=1, depStruct="DEC", phi=c(.5,.8))