Description Usage Arguments Details Value Note Author(s) References
This function constructs a ‘pomp’ object, encoding a partially-observed Markov process (POMP) model together with a uni- or multi-variate time series. As such, it is central to all the package's functionality. One implements the POMP model by specifying some or all of its basic components. These comprise:
which samples from the distribution of the state process at the zero-time;
the simulator of the unobserved Markov state process;
the evaluator of the probability density function for transitions of the unobserved Markov state process;
the simulator of the observed process, conditional on the unobserved state;
the evaluator of the measurement model probability density function;
which samples from a prior probability distribution on the parameters;
which evaluates the prior probability density function;
which computes the deterministic skeleton of the unobserved state process;
which performs parameter transformations.
The basic structure and its rationale are described in the Journal of Statistical Software paper, an updated version of which is to be found on the package website.
1 2 3 4 |
data |
either a data frame holding the time series data, or an object of class ‘pomp’, i.e., the output of another pomp calculation. |
times |
the times at which observations are made.
|
t0 |
The zero-time, i.e., the time of the initial state.
This must be no later than the time of the first observation, i.e., |
... |
additional arguments supply new or modify existing model characteristics or components.
See When named arguments not recognized by |
rinit |
simulator of the initial-state distribution.
This can be furnished either as a C snippet, an R function, or the name of a pre-compiled native routine available in a dynamically loaded library.
Setting |
rprocess |
simulator of the latent state process, specified using one of the rprocess plugins.
Setting |
dprocess |
optional;
specification of the probability density evaluation function of the unobserved state process.
Setting |
rmeasure |
simulator of the measurement model, specified either as a C snippet, an R function, or the name of a pre-compiled native routine available in a dynamically loaded library.
Setting |
dmeasure |
evaluator of the measurement model density, specified either as a C snippet, an R function, or the name of a pre-compiled native routine available in a dynamically loaded library.
Setting |
skeleton |
optional; the deterministic skeleton of the unobserved state process.
Depending on whether the model operates in continuous or discrete time, this is either a vectorfield or a map.
Accordingly, this is supplied using either the |
rprior |
optional; prior distribution sampler, specified either as a C snippet, an R function, or the name of a pre-compiled native routine available in a dynamically loaded library.
For more information, see here.
Setting |
dprior |
optional; prior distribution density evaluator, specified either as a C snippet, an R function, or the name of a pre-compiled native routine available in a dynamically loaded library.
For more information, see here.
Setting |
partrans |
optional parameter transformations, constructed using Many algorithms for parameter estimation search an unconstrained space of parameters.
When working with such an algorithm and a model for which the parameters are constrained, it can be useful to transform parameters.
One should supply the |
covar |
optional covariate table, constructed using If a covariate table is supplied, then the value of each of the covariates is interpolated as needed.
The resulting interpolated values are made available to the appropriate basic components.
See the documentation for |
params |
optional; named numeric vector of parameters.
This will be coerced internally to storage mode |
accumvars |
optional character vector; contains the names of accumulator variables. See here for a definition and discussion of accumulator variables. |
obsnames |
optional character vector;
names of the observables.
It is not usually necessary to specify |
statenames |
optional character vector;
names of the latent state variables.
It is typically only necessary to supply |
paramnames |
optional character vector;
names of model parameters.
It is typically only necessary to supply |
covarnames |
optional character vector;
names of the covariates.
It is not usually necessary to specify |
PACKAGE |
optional character;
the name (without extension) of the external, dynamically loaded library in which any native routines are to be found.
This is only useful if one or more of the model components has been specified using a precompiled dynamically loaded library;
it is not used for any component specified using C snippets.
|
globals |
optional character;
arbitrary C code that will be hard-coded into the shared-object library created when C snippets are provided.
If no C snippets are used, |
cdir |
optional character variables.
|
cfile |
optional character variables.
|
shlib.args |
optional character variables.
Command-line arguments to the |
compile |
logical;
if |
verbose |
logical; if |
Each basic component is supplied via an argument of the same name.
These can be given in the call to pomp
, or to many of the package's other functions.
In any case, the effect is the same: to add, remove, or modify the basic component.
Each basic component can be furnished using C snippets, R functions, or pre-compiled native routine available in user-provided dynamically loaded libraries.
The pomp
constructor function returns an object, call it P
, of class ‘pomp’.
P
contains, in addition to the data, any elements of the model that have been specified as arguments to the pomp
constructor function.
One can add or modify elements of P
by means of further calls to pomp
, using P
as the first argument in such calls.
One can pass P
to most of the pomp package methods via their data
argument.
It is not typically necessary (or indeed often feasible) to define all of the basic components for any given purpose. Each pomp algorithm makes use of only a subset of these components. Any algorithm requiring a component that is not present will generate an error letting you know that you have not provided a needed component. FIXME
Aaron A. King
A. A. King, D. Nguyen, and E. L. Ionides (2016) Statistical Inference for Partially Observed Markov Processes via the Package pomp. Journal of Statistical Software 69(12): 1–43.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.