Here we describe the covariance structures which are currently
available in mmrm
.
Introduction
We use some concepts throughout the different covariance structures and introduce these here.
Covariance and Correlation Matrices
The symmetric and positive definite covariance matrix is parametrized by a vector of variance parameters . The meaning and the number () of variance parameters is different for each covariance structure.
In many covariance structures we use the decomposition where the diagonal standard deviation matrix is with entries , and the symmetric correlation matrix is with entries . Since these covariance structures assume different variances for each time point they are called “heterogeneous” covariance structures. Assuming a constant gives a “homogeneous” covariance structure instead.
Transformation to Variance Parameters
For standard deviation parameters we use the natural logarithm to map them to . For correlation parameters we consistently use the transformation which maps the correlation parameter to . It has the inverse This is important because the resulting variance parameters can be optimized without constraints over the whole of .
Covariance Structures
Unstructured (us
)
Any covariance matrix can be represented by this saturated correlation structure. Here . See the algorithm vignette for details.
Homogeneous (ad
) and Heterogeneous Ante-dependence
(adh
)
The ante-dependence correlation structure (Gabriel 1962) is useful for balanced designs where the observations are not necessarily equally spaced in time. Here we use an order one ante-dependence model, where the correlation matrix has elements So we have correlation parameters , .
We use a heterogeneous covariance structure to allow for different within subject variances. So here we can identify and we have in total variance parameters. Assuming a constant variance yields a homogeneous ante-dependence covariance structure with total variance parameters.
Note our naming convention for the homogeneous and heterogeneous
covariance structures that a suffix h
is used to denote the
heterogeneous version, e.g, ad
for homogeneous and
adh
for heterogeneous ante-dependence. This is different
from the name used in SAS for ante-dependence covariance structure,
where ANTE(1)
refers to heterogeneous ante-dependence
covariance structure and a homogeneous version is not provided in
SAS.
Homogeneous (toep
) and Heterogeneous Toeplitz
(toeph
)
Toeplitz matrices (Toeplitz 1911) are diagonal-constant matrices. Here we can model the correlation matrix as a Toeplitz matrix: This means that the correlation between two time points only depends on the distance between them, i.e. and we have correlation parameters , .
We use a heterogeneous covariance structure to allow for different within subject variances. So here we can identify and we have in total variance parameters. This is similar to the heterogeneous ante-dependence structure, but the correlation parameters are used differently in the construction of . Assuming a constant variance yields a homogeneous Toeplitz covariance structure with total variance parameters.
Homogeneous (ar1
) and Heterogeneous (ar1h
)
Autoregressive
The autoregressive covariance structure can be motivated by the corresponding state-space equation where the white noise has a normal distribution with mean zero and a constant variance. It can be shown that this gives correlations where is related to and the variance and is the single correlation parameter here.
Assuming a constant variance in the state-space equation yields a homogeneous autoregressive covariance structure with total only variance parameters, otherwise we obtain the heterogeneous autoregressive covariance structure with variance parameters.
Homogeneous (cs
) and Heterogeneous (csh
)
Compound Symmetry
The compound symmetry covariance structures assume a constant correlation between different time points: where is the single correlation parameter here.
Assuming a constant variance in the state-space equation yields a homogeneous compound symmetry covariance structure with total only variance parameters, otherwise we obtain the heterogeneous compound symmetry covariance structure with variance parameters.
Spatial Covariance Structure
Spatial covariance structures, unlike other covariance structures, does not require that the timepoints are consistent between subjects. Instead, as long as the distance between visits can be quantified in terms of time and/or other coordinates, the spatial covariance structure can be applied. Euclidean distance is the most common case. For each subject, the covariance structure can be different. Only homogeneous structures are allowed (i.e. a common variance is used).
Please note that while printing the summary of an mmrm
fit, the covariance displayed is a 2 * 2 square matrix. As the distance
will be used to derive the corresponding element in that matrix, unit
distance is used here. The distance matrix is
Spatial exponential (sp_exp
)
For spatial exponential, the covariance structure is defined as follows:
where is the distance between time point and time point ,
A total number of parameters is needed:
The parameterization for is a little different from previous examples. In previous examples, can take values from -1 to 1, but here we need to restrict to (0, 1). Hence we have the following parametrization form.