inla.cgeneric.sample {INLAtools} | R Documentation |
Draw samples from hyperparameters of a cgeneric
model component from an inla
output, like
inla::inla.iidkd.sample()
.
Description
Draw samples from hyperparameters of a cgeneric
model component from an inla
output, like
inla::inla.iidkd.sample()
.
Usage
inla.cgeneric.sample(
n = 10000,
result,
name,
model,
from.theta,
simplify = FALSE
)
Arguments
n |
integer as the sample size. |
result |
an |
name |
character with the name of the model component in the set of random effects. |
model |
a |
from.theta |
a function to convert from theta to the desired output for each sample. |
simplify |
logical (see ?sapply). |
Value
matrix (if n>1 and length(from.theta)>1) or numeric vector otherwise.
See Also
[Package INLAtools version 0.0.4 Index]