simulate {mimR} | R Documentation |
This function draws a random sample from a fittet mim model.
simulate(mim, size, digits = 3)
mim |
A mim model object |
size |
The size of the sample |
digits |
The number of digits for the continuous variables |
A data frame
Before using mimR, make sure that the MIM program is runnning.
Søren Højsgaard, sorenh@agrsci.dk
David Edwards, An Introduction to Graphical Modelling, Second Edition, Springer Verlag, 2000
data(rats) gmd.rats <- as.gmData(rats) m2 <- mim("ab/abc+abd/cd", data=gmd.rats, letter=TRUE) mf2 <- fit(m2) samp <- simulate(mf2, size=10) # 'sample' is already used in R samp