perfectSample: Perfectly samples an MTD Markov chain
Description
Samples an MTD Markov Chain from the stationary distribution.
Usage
perfectSample(MTD, N = NULL)
Value
Returns a sample from an MTD model (the first element is the most recent).
Arguments
MTD
An MTD object, see MTDmodel() for properly generating a MTD object.
N
The sample size. If NULL sample size will be set to 1000.
Details
This perfect sample algorithm requires that the MTD model has
an independent distribution (p0) with a positive weight (i.e., MTD$lambdas["lam0"]>0 which
means \(\lambda_0>0\)).