coxmeMlist function

Coxme variance function

Coxme variance function

This variance function accepts a list of matrices, which define a correlation structure for a coxme fit. 1.1

coxmeMlist(varlist, rescale = FALSE, pdcheck = TRUE, positive = TRUE)

Arguments

  • varlist: a list containing one or more matrix or bdsmatrix objects.
  • rescale: if TRUE, each input matrix is rescaled to have a diagonal of 1. (Kinship matrices for instance are often generated with a diagonal of .5 and would be multiplied by 2).
  • pdcheck: check each matrix to ensure that it is positive definite
  • positive: constrain coefficients to be positive. This may also be a vector of the same length as varlist

Details

If two matrices AA and BB were given, this fits the variance structure V=s1A+s2BV = s1 A + s2 B, where the variances s1s1 and s2s2 are parameters that will be optimized by coxme, treating AA and BB as fixed.

Returns

a coxme variance family object, used by coxme in the fitting process.

Author(s)

Terry Therneau

See Also

coxme

  • Maintainer: Terry M. Therneau
  • License: LGPL-2
  • Last published: 2024-08-23

Useful links