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
.
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)
|
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 |
.safe |
should an error be thrown if |
cholObj,symmObj |
corresponding triangular cholesky and
symmetric |
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, |
ABtrans |
function to pass as |
transList |
list of transformation functions |
covariate |
covariate |
grpFac |
a grouping factor (or anything coercible to
|
modMat |
model matrix |
matSize |
number of rows (or columns) of the matrix |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.