glmGetSamples: Get posterior samples for a specific model configuration for...

Description Usage Arguments Value Author(s) Examples

Description

Get posterior samples for a specific model configuration for generalised response

Usage

1
2
  glmGetSamples(config, modelData, mcmc = getMcmc(),
    computation = getComputation())

Arguments

config

the model configuration vector

modelData

the data necessary for model estimation, which is the result from glmModelData

mcmc

MCMC options, result from getMcmc

computation

computation options produced by getComputation

Value

A list with samples from the shrinkage hyperparameter t = g / (g + 1) and the (linear and spline) coefficients, and further information.

Author(s)

Daniel Sabanes Bove daniel.sabanesbove@ifspm.uzh.ch

Examples

 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)

hypergsplines documentation built on May 2, 2019, 6:14 p.m.