Plot performance scores for point and interval estimators
plot-EstimatorScoreResultList-method.Rd
This function extract the values of mu and the score values and a facet plot with one facet per score. If the input argument is a list, the different estimators will be displayed in the same facets, differentiated by color.
Usage
# S4 method for class 'EstimatorScoreResultList'
plot(x, y, ...)
Value
a ggplot
object visualizing the score values.
Examples
score_result1 <- evaluate_estimator(
MSE(),
estimator = SampleMean(),
data_distribution = Normal(FALSE),
design = get_example_design(),
mu=seq(-.75, 1.32, 0.03),
sigma=1)
# Plotting the result of evaluate_estimator
plot(score_result1)
score_result2 <- evaluate_estimator(
MSE(),
estimator = AdaptivelyWeightedSampleMean(w1 = 0.8),
data_distribution = Normal(FALSE),
design = get_example_design(),
mu=seq(-.75, 1.32, 0.03),
sigma=1)
# Plotting a list of different score results
plot(c(score_result1, score_result2))