opts_chunk$set(
    echo = FALSE,
    comment = NA,
    quiet = TRUE,
    progress = FALSE,
    tidy = FALSE,
    cache = FALSE,
    dpi = 300,
    fig.path = "",
    message = FALSE,
    error = FALSE, # FALSE: do not preserve errors. Always stop execution.
    warning = TRUE
)
options(width = 110)

Confidence estimates of state classifications produced using environmental indicators and associated targets

General settings

r packageDescription("confidence", fields = "Package") package version r packageDescription("confidence", fields = "Version") (r packageDescription("confidence", fields = "Date")) - Time stamp: r format(Sys.time()) - Output directory: r outputDir

Summary of inputs

Results

The table below gives for each object identifier and parameter:

  1. the multi-year arithmetic average (MYA);
  2. the probability (PROB_LTT) that MYA is less than the target value (TARGET);
  3. the probability (PROB_GTT) that MYA is greater than the target value (TARGET);
  4. the lowerbound (q05) and upperbound (q95) of the 90% confidence interval of MYA
mya <- mya(x)
print(xtable(as.data.frame(mya)), type = "html", include.rownames = FALSE)

The figure(s) below give(s) the confidence distribution(s) for parameters in specified water bodies and periods. These three metadata are printed in the header of each figure. The vertical red line indicates the target (TARGET) for a specified parameter. The probability that the true multi-year average (MYA) lies above or below the target is presented as percentages in the graph (respectively to the right and left of the vertical red line).

out <- character()
for (i in 1:nrow(mya)) {
    out <- c(out,  knit_child(
        text = sprintf(
            fmt = "```r\nplot(mya, which=%s)\n```",
            sanitize(paste("fig", mya$OBJECTID[i], mya$PAR[i], mya$PERIOD[i], sep = "_")), 
            i
        )
    ))
}

r out


References

Baggelaar, P., O. van Tongeren, R. Knoben, & W. van Loon, 2010. Rapporteren van de betrouwbaarheid van KRW-beoordelingen (in Dutch, English translation: Reporting the accuracy of WFD-assessments). H2O 16, p.21--25


Session information

sessionInfo()


Try the confidence package in your browser

Any scripts or data that you put into this service are public.

confidence documentation built on May 2, 2019, 1:06 p.m.