Description Usage Arguments See Also Examples
This function initialises the sampling method for the spatial decay parameter φ.
1 |
distribution |
Prior distribution for φ. Currently available methods are, Gamm(a,b) and Unif(low,up). One can also used "FIXED" value for φ parameter. |
tuning |
If the Gamma prior distribution is used then we need to define the tuning parameter for sampling φ. The |
npoints |
If Unif distribution is used then need to define the number of segments for the range of limits by npoints. Default value is 5. |
value |
If distribution="FIXED" type is used then need to define the value for φ. The default value is 3/dmax where dmax is the maximum distance between the fitting sites provided by |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ##
# input for random-walk Metropolis within Gibbs
# sampling for phi parameter
spatial.decay<-spT.decay(distribution=Gamm(2,1), tuning=0.08)
# input for discrete sampling of phi parameter
# with uniform prior distribution
spatial.decay<-spT.decay(distribution=Unif(0.01,0.02),npoints=5)
# input for spatial decay if FIXED is used
spatial.decay<-spT.decay(distribution="FIXED", value=0.01)
##
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.