R/build_ss_pois.R
    build_ss_pois.Rdbuild_ss_pois() builds a single-stage multi-arm clinical trial design
object assuming the primary outcome variable is Poisson distributed, like
those returned by des_ss_pois.
build_ss_pois( n = rep(141, 3), alpha = 0.025, beta = 0.1, lambda0 = 5, delta1 = 1, delta0 = 0, correction = "dunnett", power = "marginal", summary = F )
| n | A   | 
    
|---|---|
| alpha | A   | 
    
| beta | A   | 
    
| lambda0 | A   | 
    
| delta1 | A   | 
    
| delta0 | A   | 
    
| correction | A   | 
    
| power | A   | 
    
| summary | A   | 
    
A list of class "multiarm_des_ss_pois"
containing the following elements
A tibble in the slot $opchar summarising the
operating characteristics of the chosen design.
A numeric in the slot $N specifying
N, the trial's total required sample
size.
A numeric in the slot $gamma specifying the
critical threshold for p-values,
γ, below which null
hypotheses would be rejected. Will be NA if correction
is not a single-step testing procedure.
A numeric vector in the slot $gammaO specifying
the critical thresholds for ordered p-values,
γ, to use with
the chosen step-wise testing procedure. Will be NA if
correction is not a step-wise testing procedure.
A numeric vector in the slot $ratio specifying the
vector of allocation ratios,
r.
Each of the input variables.
# The design for the default parameters des <- build_ss_pois() # Modifying the number of experimental treatments and the sample size in each # arm des_K_n <- build_ss_pois(n = rep(100, 4))