mkTrans: Construct functions for transforming a parameter vector to...

Description Usage Arguments

Description

These functions return a 'trans function', for transforming a parameter vector to the repeated non-zero values of a structured sparse matrix. Each trans function takes one vector argument called matPars, which are the parameters of the matrix. The environment of these transformation functions must contain a vector called init, which contains the initial values (aka, the prototype) of matPars.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
mkTrans(init, trans, env = new.env(), .safe = TRUE)

mkIdentityTrans(init)

mkCholOneOffDiagTrans(init)

mkGenCholInPlaceTrans(init)

mkConstVarCholTrans(init)

mkCorMatCholTrans(init)

mkExpCholTrans(init, cholObj, symmObj, vecDist)

mkFlexDiagTrans(init, defaultOutput, devfunEnv)

mkOuterTrans(Atrans, Btrans, ABtrans)

mkListTrans(transList)

mkVarExpTrans(init, covariate, grpFac)

mkMultiVarExpTrans(init, modMat, grpFac)

mkVarPowerTrans(init, covariate, grpFac)

mkVarIdentTrans(init, covariate, grpFac)

mkVarFixedTrans(init, covariate, grpFac)

mkCholCompSymmTrans(init, matSize)

Arguments

trans

transformation function (without an environment) that takes parameter values and returns a vector containing the structural non-zero unique values of a structured sparse matrix

init

initial parameter values

env

a named list or environment containing objects required by trans

.safe

should an error be thrown if trans has an environment? if FALSE then mkTrans will delete any such environment, and you might not like this so be careful.

cholObj,symmObj

corresponding triangular cholesky and symmetric strucMatrix matrix objects

vecDist

distances as a vector

defaultOutput

default vector for diagonal elements

devfunEnv

environment of the deviance function

Atrans,Btrans

functions for transforming two structured sparse matrices, A and B say

ABtrans

function to pass as FUN in outer

transList

list of transformation functions

covariate

covariate

grpFac

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

modMat

model matrix

matSize

number of rows (or columns) of the matrix


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