getSamples: Get posterior samples for a specific model configuration

Description Usage Arguments Value Author(s) Examples

Description

Get posterior samples for a specific model configuration

Usage

1
  getSamples(config, nSamples, modelData)

Arguments

config

the model configuration vector

nSamples

number of samples to simulate

modelData

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

Value

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

Author(s)

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## get some data
attach(longley)

## get model data
md <- modelData(y=Employed,
                X=cbind(GNP, Armed.Forces))

## get posterior samples for a specific model configuration
res <- getSamples(config=c(2, 2),
                  nSamples=1000L,
                  modelData=md)
str(res)

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