strucMatrixVarWithCovariate: Structured sparse diagonal covariance matrix with a covariate...

Description Usage Arguments See Also Examples

Description

Structured sparse diagonal covariance matrix with a covariate determining the diagonal

Usage

1
2
strucMatrixVarWithCovariate(varPars, covariate, grpFac,
  mkTransFunc = mkVarExpTrans)

Arguments

varPars

vector of variance parameters (one per level of grpFac)

covariate

covariate

grpFac

a grouping factor (or anything coercible to numeric really) with the number of levels equal to the length of varPars

mkTransFunc

a function taking arguments varPars, covariate, and grpFac for constructing a trans function (see mkVarExpTrans for an example).

See Also

Other strucMatrixSpecial: strucMatrixBlank; strucMatrixCol; strucMatrixCompSymm; strucMatrixConstVarChol; strucMatrixCorFactor; strucMatrixCorMatChol; strucMatrixDiag; strucMatrixExpChol; strucMatrixFull; strucMatrixGenFullTri; strucMatrixIdent; strucMatrixInd; strucMatrixOneOffDiag; strucMatrixOnes; strucMatrixSymm; strucMatrixTri

Examples

1
(xVarWithCovariate <- strucMatrixVarWithCovariate(rep(1, 5), 0.05*(4:0)))

stevencarlislewalker/lme4ord documentation built on May 30, 2019, 4:43 p.m.