Skip to contents

In this example, the continuous outcome is a patient's change from baseline. For this function, 20 As such, this function simulations patient outcome where, on average, 20 simulated from a normal distribution with the mean and standard deviation as sent from East.

Usage

SimulatePatientOutcomePercentAtZero(
  NumSub,
  TreatmentID,
  Mean,
  StdDev,
  UserParam = NULL
)

Arguments

NumSub

The number of subjects that need to be simulated, integer value

TreatmentID

A vector of treatment ids, 0 = treatment 1, 1 = Treatment 2. length( TreatmentID ) = NumSub

Mean

A vector of length = 2 with the means of the two treatments.

StdDev

A vector of length = 2 with the standard deviations of each treatment

UserParam

A list of user defined parameters in East. The default must be NULL resulting in ignoring the percent of patients at 0. If UseParam is supplied, the list must contain the following named elements:

UserParam$dProbOfZeroOutcomeCtrl

A value in (0, 1) that defines the probability a patient will have an outcome of 0 on the control (ctrl) treatment.

UserParam$dProbOfZeroOutcomeExp

A value in (0, 1) that defines the probability a patient will have an outcome of 0 on the control (ctrl) treatment.