proposal {BaPreStoPro}R Documentation

Sampling from lognormal proposal density

Description

Drawing one sample from the lognormal distribution with mean parOld and standard deviation propSd. Used in Metropolis Hastings algorithms.

Usage

proposal(parOld, propSd)

Arguments

parOld

the parameter from the last iteration step

propSd

proposal standard deviation

Examples

plot(replicate(100, proposal(1, 0.1)), type = "l")

[Package BaPreStoPro version 0.1 Index]