Learn R Programming

verification (version 1.42)

observation.error: Observation Error

Description

Quantifies observation error through use of a ``Gold Standard'' of observations.

Usage

observation.error(obs, gold.standard = NULL, ...)

Value

t

Probability of forecasting an event, when an event occurs. A perfect value is 1.

u

Probability of forecasting that no event will occur, when and event occurs. A perfect value is 0.

Arguments

obs

Observation made by method to be quantified. This information can be entered two ways. If obs is a vector of length 4, it is assumed that is contains the values c(n11, n10, n01, n00), where n11 are the number of correctly predicted events and n01 is the number of incorrectly predicted non-events.

gold.standard

The gold standard. This is considered a higher quality observation (coded {0, 1 } ).

...

Optional arguments.

Author

Matt Pocernich

See Also

measurement.error

Examples

Run this code
obs <- round(runif(100))
gold <- round(runif(100) )
observation.error(obs, gold)

## Pirep gold standard

observation.error(c(43,10,17,4) )

Run the code above in your browser using DataLab