Normal {adestr} | R Documentation |
Normally distributed data with known variance
Description
This function creates an object representing the distributional assumptions
of the data: normally distributed outcomes sample from a trial with
one or two arms (depending on the value of the parameter two_armed
),
under the assumption of known variance.
Usage
Normal(two_armed = TRUE)
Arguments
two_armed |
(logical) determines whether one or two-armed trials are assumed. |
Value
an object of class Normal
. This object encodes the distributional
assumptions of the data for usage in the functions
evaluate_estimator
and analyze
.
Examples
evaluate_estimator(
score = MSE(),
estimator = SampleMean(),
data_distribution = Normal(FALSE),
design = get_example_design(),
mu = c(0, 0.3, 0.6),
sigma = 1,
exact = FALSE
)
[Package adestr version 0.5.0 Index]