Learn R Programming

gRaven (version 1.1.10)

simulate.gRaven: method for a gRaven domain

Description

Simulate method for a gRaven domain

Usage

# S3 method for gRaven
simulate(object, nsim = 1, seed = NULL, ...)

Value

a data frame.

Arguments

object

character string, name of gRaven domain

nsim

Number of cases to simulate

seed

An optional integer controlling the random number generatation

...

additional arguments to simulate

Author

Peter J. Green, P.J.Green@bristol.ac.uk

Examples

Run this code
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