Description Usage Arguments Details Value
Genenerate random draws from the mNIX predictive distribution.
1 | mnix_pred(n, Xpred, lambda, Omega, nu, tau, y, X, id)
|
n |
Number of random draws (integer). |
Xpred |
Covariate matrix of size |
lambda |
Mean parameter. A vector of length |
Omega |
Precision matrix parameter. A matrix of size |
nu |
Degrees-of-freedom parameter. A scalar or a vector of length |
tau |
Scale parameter. A scalar or a vector of length |
y |
Optional response vector of length |
X |
Optional covariate matrix of size |
id |
Optional subject identifier vector of length |
If y
, X
and id
are unspecified, then (beta, sigma)
are drawn from mNIX(lambda, Omega, nu, tau)
. Otherwise, they are drawn from the posterior mNIX distribution p(beta, sigma | y, X, id, lambda, Omega, nu, tau)
. In this case, the number of subjects nsub
must be n
or 1
.
A vector of n
draws from the predictive distribution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.