Description Usage Arguments Value Examples
Initializes a design based on historical controls before the start of the study.
1 2 |
hist_data |
A data frame containing covariates and binary responses for historical controls. |
formula |
A formula which is used for fitting a logistic regression model on the historical data. |
phi |
The relation between the response rate under the null and the response rate under the interesting alternative.
"odds_ratio" assumes that the odds ratio (OR) between these response rates is constant with OR = |
c1 |
parameter for obtaining the response rate under the alternative, see description of phi. |
modelfit |
Can be used instead of |
mean0 |
Optional: Can be used to overwrite the estimated average response rate under the null of the fitted model. |
mean1 |
Optional: Can be used to overwrite the estimated average response rate under the alternative of the fitted model. |
alpha |
Specified type I error of the trial. |
beta |
Specified type II error of the trial. |
A list returning the arguments of the function and the preliminary design for starting the stratified trial.
1 2 3 4 | X <- abs(rnorm(1000, 0, 1))
Y <- rbinom(1000, 1, 1-exp(-X))
mydata <- data.frame("X" = X, "Y" = Y)
hist_start(mydata, Y~X, c1 = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.