rise.engine.estimation.rsamplers.rwmh is the constructor for the Random-walk Metropolis Hastings algorithm
The syntax is
obj = rise.engine.estimation.rsamplers.rwmh(target,x0,lb,ub) obj = rise.engine.estimation.rsamplers.rwmh(target,x0,lb,ub,opts) obj = rise.engine.estimation.rsamplers.rwmh(target,x0,lb,ub,opts,constraints)INPUTS :
*target* : objective to MAXIMIZE
*x0* : vector of initial conditions
*lb* : lower bound
*ub* : upper bound
*opts* : options for the class. These include the properties from the superclass rise.engine.estimation.rsamplers.rsampler as well as the specific properties of the rwmh algorithm that can be found in the properties list below.
*constraints* (optional): - Matrix (n_constraints x 2) where each row [a, b] enforces x(a) <= x(b)
OUTPUT:
*obj* : object of class rise.engine.estimation.rsamplers.rwmh
OWN PROPERTIES AND DEFAULT VALUES:
*c* = 1. Proposal covariance =
c*tunedCovand standard-deviation scale =sqrt(c). The value \(2.38^2/d\), where \(d\) is the parameter dimension, is an asymptotic guideline for high-dimensional smooth product targets with Gaussian random-walk proposals at stationarity.*tunedCov* : covariance matrix of the parameters
*proposal* = ‘normal’ : proposal in {‘normal’,’t-student’}
INHERITED PROPERTIES AND DEFAULT VALUES:
*nchain* = 1 : number of chains
*N* = 5000 : number of draws
*thinning* =1 : number of thinning draws
*burnin* = 100 : burnin sample
*MaxTime* = inf : Max Time
*MaxFunEvals* = inf :
See also
rise.engine.estimation.rsamplers.apt, rise.engine.estimation.rsamplers.imh, rise.engine.estimation.rsamplers.rsampler