R/mvn.hyper.check.R
mvn.hyper.check.RdArgument checking for the default multivariate normal prior.
mvn.hyper.check(hyper, param.names, data.names)
| hyper | The normal prior's hyperparameters: |
|---|---|
| param.names | Vector of parameter names (see Details). |
| data.names | Vector of data names (see Details). |
A list with the following elements:
meanThe mean vector.
cholSdThe upper upper Cholesky factor of the variance matrix.
thetaIdThe index of the corresponding variables in theta.
xIdThe index of the corresponding variables in x0.
This function is not meant to be called directly by the user, but rather to parse the hyper-parameters of a default multivariate normal prior distribution to be passed to the C++ code in sde.prior() and sde.post(). This default prior is multivariate normal on the elements of (theta, x0) specified by each of names(mu), rownames(Sigma), and colnames(Sigma). The remaining components are given Lebesgue priors, or a full Lebesgue prior if hyper == NULL. If the names of mu and Sigma are inconsistent an error is thrown.