Learn R Programming

pomp (version 0.39-3)

verhulst: Simple Verhulst-Pearl (logistic) model.

Description

verhulst is a pomp object encoding a univariate stochastic logistic model with measurement error.

Usage

data(verhulst)

Arguments

Details

The model is written as an Ito diffusion, $dn = r n (1-n/K) dt + \sigma n dW$, where $W$ is a Wiener process. It is implemented using the euler.sim plug-in.

See Also

pomp-class and the vignettes

Examples

Run this code
data(verhulst)
plot(verhulst)
coef(verhulst)
params <- cbind(
                c(n.0=100,K=10000,r=0.2,sigma=0.4,tau=0.1),
                c(n.0=1000,K=11000,r=0.1,sigma=0.4,tau=0.1)
                )
x <- simulate(verhulst,params=params,states=TRUE)
matplot(time(verhulst),t(x['n',,]),type='l')
y <- trajectory(verhulst,params=params)
matlines(time(verhulst),t(y['n',,]),type='l',lwd=2)

Run the code above in your browser using DataLab