Normally distributed data with known variance
Normal.Rd
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.
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
)
#> Design: TwoStageDesign<n1=28;0.8<=x1<=2.3:n2=9-40>
#> Data Distribution: Normal<single-armed>
#> Estimator: Sample mean
#> Assumed sigma: 1
#> Assumed mu: 0.0 0.3 0.6
#> Results:
#> Expectation: -0.02491922 0.30567290 0.62041636
#> Bias: -0.024919220 0.005672903 0.020416356
#> Variance: 0.02779122 0.03777824 0.02790974
#> MSE: 0.02841219 0.03781042 0.02832657
#>