twinstim_tiaf | R Documentation |
A temporal interaction function for use in twinstim
can be constructed via the tiaf
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 temporal interaction functions, e.g.,
tiaf.exponential
.
tiaf(g, G, deriv, Deriv, npars, validpars = NULL)
g |
the temporal interaction function. It must accept
two arguments, the first one being a vector of time points, the
second one a parameter vector. For marked |
G |
a primitive of |
deriv |
optional derivative of |
Deriv |
optional primitive of |
npars |
the number of parameters of the temporal 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
tiaf.exponential
for a pre-defined temporal interaction
function, and siaf
for the spatial interaction function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.