plot,list-method {adestr} | R Documentation |
Plot performance scores for point and interval estimators
Description
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 signature 'list'
plot(x, y, ...)
Arguments
x |
an output object from evaluate_estimator ( |
y |
unused. |
... |
additional arguments handed down to ggplot. |
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))
[Package adestr version 1.0.0 Index]