View source: R/helper_functions.R
get_statistics_from_paper | R Documentation |
Generate the list of estimators and p-values that were used in the paper
get_statistics_from_paper(
point_estimators = TRUE,
interval_estimators = TRUE,
p_values = TRUE
)
point_estimators |
logical indicating whether point estimators should be included in output list |
interval_estimators |
logical indicating whether interval estimators should be included in output list |
p_values |
logical indicating whether p-values should be included in output list |
a list of PointEstimator
s, IntervalEstimator
s and
PValue
.
set.seed(123)
dat <- data.frame(
endpoint = c(rnorm(28, 0.3)),
stage = rep(1, 28)
)
analyze(data = dat,
statistics = list(),
data_distribution = Normal(FALSE),
design = get_example_design(),
sigma = 1)
# The results suggest recruiting 32 patients for the second stage
dat <- rbind(
dat,
data.frame(
endpoint = rnorm(32, mean = 0.3),
stage = rep(2, 32)))
analyze(data = dat,
statistics = get_example_statistics(),
data_distribution = Normal(FALSE),
design = get_example_design(),
sigma = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.