View source: R/stratifiedAnalysis.R
analyse | R Documentation |
Creates stratified sequences Compares stratified sequences to their respective non-stratified version under the influence of bias.
endp |
object of class |
pr |
at least one object of class |
Stratified and Non-stratified versions of a randomization sequence behave differently with respect to issues like selection bias, chronological bias or combined bias.
The analyse
function creates both versions of a sequence for each of the specified randomization procedures and analyses them in relation to the bias created according to the theta
and eta
values.
The first argument should specify the total sample size of patients. The second argument should be one of class normEndp
describing a normally distributed endpoint.
The third argument should be the allocation ratio for the different strata. The fourth argument should be the number of strata in the clinical trial. The fifth and sixth arguments should be the selection bias effect eta and the time trend theta.
The seventh argument should be a vector of strings representing different randomization procedures. The strings should be given as described by the getDesign
function. Any additional parameters should be given after the design name of the procedure encapsulated in parenthesis.
The function returns a matrix that summarizes the performance of the randomization procedures. The values for each randomization procedure represent the percentage of sequences that kept the 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.