genpoissondata {BayesCTDesign}R Documentation

Generating function for Poisson Data.

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

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

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

[Package BayesCTDesign version 0.6.1 Index]