mc.sim: run a markov model

Description Usage Arguments Details Value

View source: R/rds.r

Description

run a given markov model for n time steps, starting at a specified state

Usage

1
mc.sim(mm, start, n)

Arguments

mm

the markov model object returned by estimate.mixing

start

the name of the state to start in

n

the number of time-steps to run through

Details

this uses the markov model produced by estimate.mixing

Value

a vector with the state visited at each time step. the first entry has the starting state


surveybootstrap documentation built on May 29, 2017, 9:09 a.m.