Learn R Programming

spTimer (version 0.02)

spT.decay: Choice for sampling spatial decay parameter $\phi$.

Description

This function initialises the sampling method for the spatial decay parameter $\phi$.

Usage

spT.decay(type="MH", tuning=NULL, limit=NULL, segments=NULL, value=NULL)

Arguments

type
The sampling method, currently available methods are, DISCRETE and MH. One can also used FIXED value for $\phi$ parameter.
tuning
If MH type is used then need to define the tuning parameter for $\phi$.
limit
If DISCRETE type is used then need to define the lower and upper limits.
segments
If DISCRETE type is used then need to define the number of segments for the range of limits.
value
If FIXED type is used then need to define the value for $\phi$.

See Also

spT.Gibbs.

Examples

Run this code
## 

# input for random-walk Metropolis within Gibbs 
# sampling for phi parameter
spatial.decay<-spT.decay(type="MH", tuning=0.08)

# input for discrete sampling of phi parameter
spatial.decay<-spT.decay(type="DISCRETE",
           limit=c(0.01,0.02),segments=5)

# input for spatial decay if FIXED is used
spatial.decay<-spT.decay(type="FIXED", value=0.01)

##

Run the code above in your browser using DataLab