Description Usage Arguments Details See Also
Non-linear random walk and spatial terms that can be used in addition to linear terms in the FCS2 abundance and prevalence regression equations.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | rw1(val, noLevels = 10, boundaries, scale.parameters,
precision.parameters, initial.values, precision.initial.value)
rw2(val, noLevels = 10, boundaries, scale.parameters,
precision.parameters, initial.values, precision.initial.value)
spatial(val, adjacency, scale.parameters, precision.parameters,
initial.values, precision.initial.value)
rw2(
val,
noLevels = 10,
boundaries,
scale.parameters,
precision.parameters,
initial.values,
precision.initial.value
)
spatial(
val,
adjacency,
scale.parameters,
precision.parameters,
initial.values,
precision.initial.value
)
|
val |
a covariate to use for the non-linear term. |
noLevels |
the number of discrete levels to use to represent the
continuous non-linear relationship. This is ignored if |
boundaries |
an optional vector specifying the location of the discrete
points that are used to represent the non-linear covariate term. If
missing, |
scale.parameters |
an optional vector of length 2 specifying the prior distribution of the scale hyperparameter (σ or ν) that controls the variability between levels in the random walk or adjacent spatial regions. |
precision.parameters |
an optional vector of length 2 specifying the
prior distribution of the precision hyperparameter (τ = 1 /
σ^2 or φ = 1 / ν^2) that controls the variability between
levels in the random walk or adjacent spatial regions. This is ignored if
|
initial.values |
an optional vector giving an estimate for each of the variables that make up the term, one for each random walk level or one for each spatial region. These are used as starting values for the MCMC chains when fitting the full model using BUGS. |
precision.initial.value |
an optional starting value for the precision hyperparameter to be used when fitting the full model using BUGS. |
adjacency |
a list with three components containing adjacency
information relating to the spatial region. The first component |
Special Non-Linear Terms for FCS2 Abundance and Prevalence Regressions
These functions can be used within the R formulae when specifying
the abundance or prevalence regression equations via the arguments
muFormula
and rhoFormula
of fcs2FitModel
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.