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.
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 Σ=sigma2∗R. Only evaluated if object is.null(object).
depStruct: Dependence structure. "UNC" for conditionally uncorrelated ("CI" is also accepted), "ARp" for AR(p) -- p is length(phi)--, "CS" for compound symmetry, "DEC" for DEC, and "CAR1" for continuous-time AR(1). Only evaluated if object is.null(object).
phi: Parameter vector indexing the dependence structure. Only evaluated if object is.null(object).
Returns
Matrix of dimension length(times).
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.
Author(s)
Fernanda L. Schumacher, Larissa A. Matos and Victor H. Lachos