genpoissondata: Generating function for Poisson Data.

Description Usage Arguments Value Examples

View source: R/PoissonCode.R

Description

genpoissondata() function mainly used internally by poissontrialsimulator() function to generate data for a two-arm clinical trial, experimental and control groups. Can be used to generate random trial data.

Usage

1
genpoissondata(sample_size, mu1, mean_ratio)

Arguments

sample_size

Number of subjects per arm.

mu1

lambda parameter used in call to rpois(). Used only in control arm.

mean_ratio

Desired Mean Ratio between experimental and control groups.

Value

genpoissondata() returns a data frame with columns: 'id', 'treatment', and 'y'.

Examples

1
2
samplehistdata <- genpoissondata(sample_size=60, mu1=1, mean_ratio=1.0)
samplehistdata

begglest/BayesCTDesign documentation built on Aug. 14, 2018, 4:31 a.m.