View source: R/helper_functions.R
get_example_statistics | R Documentation |
This function generates a list of objects of class PointEstimator
,
IntervalEstimator
s, and PValue
s to use in
examples of the analyze
function.
get_example_statistics(
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 |
The following PointEstimator
s are included:
SampleMean
PseudoRaoBlackwell
MedianUnbiasedLikelihoodRatioOrdering
BiasReduced
The following IntervalEstimator
s are included:
StagewiseCombinationFunctionOrderingCI
LikelihoodRatioOrderingCI
The following PValue
s are included:
StagewiseCombinationFunctionOrderingPValue
LikelihoodRatioOrderingPValue
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.