twinstim_siaf | R Documentation |
A spatial interaction function for use in twinstim
can be constructed via the siaf
function.
It checks the supplied function elements, assigns defaults for
missing arguments, and returns all checked arguments in a list.
However, for standard applications it is much easier to use one of the
pre-defined spatial interaction functions, e.g.,
siaf.gaussian
.
siaf(f, F, Fcircle, effRange, deriv, Deriv, simulate, npars,
validpars = NULL)
f |
the spatial interaction function. It must accept
two arguments, the first one being a (2-column) coordinate matrix, the
second one a parameter vector. For marked |
F |
function computing the integral of |
Fcircle |
optional function for fast calculation of the
(two-dimensional) integral of |
effRange |
optional function returning the “effective”
range of |
deriv |
optional derivative of |
Deriv |
function computing the integral of |
simulate |
optional function returning a sample drawn from the
spatial kernel (only required for the simulation of |
npars |
the number of parameters of the spatial interaction
function |
validpars |
optional function taking one argument, the parameter vector, indicating if it
is valid. This approach to specify parameter constraints is rarely
needed, because usual box-constrained parameters can be taken into
account by using L-BFGS-B as the optimization method in
|
list of checked arguments.
Sebastian Meyer
siaf.gaussian
for a pre-defined spatial interaction
function, and tiaf
for the temporal interaction function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.