Description Usage Arguments Details Value Author(s) See Also
Subsetting a sequence of parameter vectors. Keeps only the n cases in pss1 that are closest to thetaPrior.
1 2 3 4 |
pss1 |
numeric matrix: the stack to constrain, see details |
thetaPrior |
the point in parameter spcae for which to select the closest values |
n |
the number of rows in output, defaults to 1/4 of nrow(pss1) |
vars |
names or indices to constrain thetaPrior and invCovarTheta |
invCovarTheta |
the inverse of the covaraince matrix for thetaPrior, defaults to inverse of sample covariance |
returnAlpha |
switch to return also significance level |
pss1 is a matrix with columns corresponding to variables
and rows corresponding to cases.
It is typicalla the result of stackChains.twDEMC
pss1[closestValues,] if returnAlpha=TRUE then a list is returned with
value as above
the significance level of the corresponding confidence ellipsis
Thomas Wutzler
initZtwDEMCNormal
constrainCfStack
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.