twLinreg1: Artificial data and parameters for DEMC-Example

Description Usage Format Source Examples

Description

Artificial data and parameters for DEMC-Example.

Usage

1

Format

A list components

fModel

dummyTwDEMCModel

xval

random numbers runif(30,min=5,max=10)

obs

artifical data: fModel(thetaTrue, xval) + rnorm(length(xval), sd=sdObs)

sdObs

standard deviation for each observations: 3*xval^0.8

invCovar

inverse of the covariance matrix: diag(1/sdObs^2,nrow = length(sdObs))

thetaTrue

Model parameters that were used to generate the artifical data: a=10, b=5

sdTheta

Standard devation of prior for model parameters, here 5 percent relative error: thetaTrue*0.05

invCovarTheta

inverse of the covariance matrix: diag(1/(sdTheta)^2,nrow = length(sdTheta))

theta0

Starting values, something off the true parameters: thetaTrue + rnorm(length(thetaTrue),sd=sdTheta)

Source

Thomas Wutzler

Examples

1
2
3
4
5
6
data(twLinreg1)     
attach(twLinreg1)
plot( xval, obs ) 
abline( thetaTrue )     
abline( theta0, col="gray" )     
     

twDEMC documentation built on May 2, 2019, 5:38 p.m.