Description Usage Arguments Value Author(s) Examples
Get posterior samples for a specific model configuration for generalised response
1 2 | glmGetSamples(config, modelData, mcmc = getMcmc(),
computation = getComputation())
|
config |
the model configuration vector |
modelData |
the data necessary for model estimation,
which is the result from |
mcmc |
MCMC options, result from
|
computation |
computation options produced by
|
A list with samples from the shrinkage hyperparameter t = g / (g + 1) and the (linear and spline) coefficients, and further information.
Daniel Sabanes Bove daniel.sabanesbove@ifspm.uzh.ch
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## get some data
attach(longley)
## get the model data
md <- glmModelData(y=as.numeric(Employed > 64),
X=cbind(GNP, Armed.Forces),
family=binomial)
## and get samples for one specific model
samples <- glmGetSamples(config=c(2L, 3L),
modelData=md,
computation=
getComputation(higherOrderCorrection=FALSE))
str(samples)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.