Learn R Programming

surveybootstrap (version 0.0.3)

mc.sim: Run a markov model

Description

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

Usage

mc.sim(mm, start, n)

Value

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

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()