powered by
Simulate method for a gRaven domain
# S3 method for gRaven simulate(object, nsim = 1, seed = NULL, ...)
a data frame.
character string, name of gRaven domain
Number of cases to simulate
An optional integer controlling the random number generatation
additional arguments to simulate
simulate
Peter J. Green, P.J.Green@bristol.ac.uk
demo("chest",package="gRaven",echo=FALSE) compile(chest) chest set.finding(chest,"asia","yes") set.finding(chest,"dysp","no") newdata<-simulate(chest,100) head(newdata)
Run the code above in your browser using DataLab