simulate.gRaven {gRaven}R Documentation

method for a gRaven domain

Description

Simulate method for a gRaven domain

Usage

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

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

Value

a data frame.

Author(s)

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

Examples

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)

[Package gRaven version 1.1.8 Index]