pomp-class {pomp} | R Documentation |
The class pomp
encodes a partially-observed Markov process.
Objects should be created by calls of the function
pomp
. See the documentation for pomp
for
usage instructions and important warnings.
nobs
x ntimes
, where nobs
is the number of observed variables and ntimes
is the number of times at which observations were made.
times
must be a strictly increasing numeric vector.
rprocess(xstart,times,params,...)
which simulates from the unobserved process.
dprocess(x,times,params,log=FALSE,...)
which evaluates the likelihood of a sequence of consecutive state transitions.
rmeasure(x,times,params,...)
which simulates from the observation process.
dmeasure(y,x,params,log=FALSE,...)
which gives the likelihood of y
given x
.
initializer(params,t0,...)
which gives a vector of initial conditions when given a vector of parameters, params
, and a time t0
.
coef(object)
returns the contents of the params
slot of object
.
coef(object,pars)
returns only those parameters named in pars
.
params
slot of the pomp
object.
If coef(object)
exists, then coef(object) <- value
has the effect of replacing the parameters of object
with value
;
the names of value
will be ignored and the names of coef(object)
will be unchanged.
If coef(object)
does not exist, then coef(object) <- value
assigns value
to the parameters of object
;
the names of coef(object)
will be those of value
and an error will be generated if value
does not have names.
If coef(object)
exists, then coef(object,pars) <- value
replaces those parameters of object
named in pars
with the elements of value
;
the names of value
are ignored.
If coef(object)
does not exist, then coef(object,pars) <- value
assigns value
to the parameters of object
;
in this case, the names of object
will be pars
and the names of value
will be ignored.
pomp
object in a nice way.pomp
object.data.array(object)
returns the array of observations.
data.array(object,vars)
gives just the observations of variables vars
.
vars
may specify the variables by position or by name.
time(object)
returns the vector of observation times.
time(object,t0=TRUE)
returns the vector of observation times with the zero-time t0
prepended.
pomp
object can be coerced to a data frame via as(object,"data.frame")
.
The data frame contains the times, the data, and the state trajectories, if they exist.
rprocess-pomp
.
dprocess-pomp
.
rmeasure-pomp
.
dmeasure-pomp
.
init.state-pomp
.
simulate
can be used to simulate state and observation trajectories.
See documentation under simulate-pomp
.
Aaron A. King (kingaa at umich dot edu)