Description Usage Arguments Value Examples
View source: R/simulate.hmma.R
simulate.hmma
simulates a HMMA. The only difference between
simulate.hmma
and simulate.hmmspec
is that this function adds
the names of the nodes of the Bayesian networks to the results. The
simulate.hmmspec
function only uses numbers, instead of names.
1 2 
object 
A hmma object 
nsim 
An integer or vector of integers (for multiple sequences) specifying the length of the sequence(s) 
seed 

... 
Further arguments passed to or from other methods. 
A simulation with the following values
s
The
states of the model.
x
The observations.
n
The
length of the observation.
1 2 3 4 5  # Get a HMMA (e.g. from learnModel or createHmma)
model < learnModel(data = hmmaExampleData, amountOfStates = 2, seed = 1234)
# Simulate the data, results in 100 observation sequences of length 20.
data < simulate(model, nsim = c(rep(20, 100)))

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.