mc.sim: Run a markov model

mc.simR Documentation

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)

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


dfeehan/surveybootstrap documentation built on Feb. 3, 2023, 6:52 a.m.