create.exposure: Create Exposure Data Matrix

Description Usage Arguments Examples

Description

This function create.exposure is a sub-function used in conjunction with the initialize.data function and creates an exposure matrix. The columns represent strata for the observational data and the rows represent new exposures in unit time. It take cumulative data and segregates it by time period. Do not run create.exposure as a stand-alone function.

Usage

1

Arguments

params

This is a set of parameters from the initialize.data function that allows for simulation of a sequence of sequential exposures in unit time.

Examples

1
2
3
4
5
paramtest <- initialize.data(seed=8768, N=1, t0=0, tf=2, NStrata=2, 
strataRatio=c(0.2, 0.3, 0.3, 0.2), EventRate=c(0.4, 0.5), sensitivity=0.9, PPVest=0.9, RR=3.0, 
MatchRatio=1, maxSampleSize=200, maxTest=1, totalAlpha=0.05, minEvents=5, AlphaSpendType="Wald",
AlphaParameter=0.5, address=getwd(), rate=20, offset=30)
create.exposure(paramtest)

SequentialDesign documentation built on May 2, 2019, 3:45 a.m.