simulate.mmfit | R Documentation |
Simulates sequences from a fitted Markov model.
## S3 method for class 'mmfit'
simulate(object, nsim = 1, seed = NULL, ...)
object |
An object of class |
nsim |
An integer or vector of integers (for multiple sequences) specifying the length of the sequence(s). |
seed |
Optional. |
... |
further arguments passed to or from other methods. |
If nsim
is a single integer then a chain of that length is
produced. If nsim
is a vector of integers, then length(nsim)
sequences are generated with respective lengths.
A list of vectors representing the sequences.
mm, fitmm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.