dmvn_smw | R Documentation |
dmvn_smw_mra
dmvn_smw(
y,
X,
beta,
tW,
tWW,
Q_alpha_tau2,
sigma2,
Rstruct = NULL,
logd = TRUE
)
y |
is a |
X |
is a |
beta |
is the regression parameter beta |
tW |
is the transpose of the sparse Wendland basis matrix of class spam |
tWW |
is the transpose of the sparse Wendland basis matrix multiplied by itself of class spam |
Q_alpha_tau2 |
is the prior precision matrix for random effects alpha |
sigma2 |
is the residual error |
Rstruct |
is the Cholesky prior precision matrix for random effects alpha |
logd |
is a logical value of whether to calculate the log density ( |
The (log) density of a normal distribution with mean \mathbf{X} \boldsymbol{\beta}
and covariance matrix \sigma^2 \mathbf{I} + \mathbf{W} \mathbf{Q}_{\alpha_{\tau^2}} \mathbf{W}'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.