Learn R Programming

DOBAD (version 1.0.6)

Nplus: Calculate summary statistics for BDMCs and CTMC_POs

Description

Nplus (number jumps up), Nminus (number jumps down), and holdtime (waiting time weighted by the waiting state) are fundamental summary statistics for the Restricted Immigration BD model. These functions compute those for BDMC, or compute the observed numbers for CTMC_PO_1 or CTMC_PO_many.

Usage

Nplus(sim)
Nminus(sim)
Nplus.CTMC_PO_many(ctmcpomany)
 Nminus.CTMC_PO_many(ctmcpomany)

Arguments

sim

Arg for Nplus, Nminus. BDMC generally. Needs to have a getStates method.

ctmcpomany

A CTMC_PO_many.

Value

Returns an integer, the number of jumps up.

Examples

Run this code
# NOT RUN {
Nplus(birth.death.simulant(1))
# }

Run the code above in your browser using DataLab