| dmeasure-pomp {pomp} | R Documentation |
The method dmeaure evaluates the probability density
of a set of measurements given the state of the system.
dmeasure(object, y, x, times, params, log = FALSE, ...) ## S4 method for signature 'pomp': dmeasure(object, y, x, times, params, log = FALSE, ...)
object |
an object of class pomp. |
y |
a rank-2 array containing observations. The dimensions of
y are nobs x ntimes, where nobs is the
number of observables and ntimes is the length of
times. |
x |
a rank-3 array containing the states of the unobserved
process. The dimensions of x are nvars x
nsims x ntimes, where nvars is the number of
state variables, nsims is the number of replicates, and
ntimes is the length of times. Note that if
nsims != nrow(y) or ntimes != length(times), an error
is generated. |
times |
a numeric vector containing the times at which the observations were made. |
params |
a rank-2 array of parameters with columns corresponding
to the columns of x. Note that the x and
params must agree in the number of their columns. |
log |
if TRUE, probabilities p are given as log(p). |
... |
at present, these are ignored. |
Returns a matrix of dimensions nsims x ntimes. If
d is the returned matrix, d[j,k] is the likelihood of
the observation y[,k] at time times[k] given the state
x[,j,k].
Aaron A. King (kingaa at umich dot edu)