observation.error: Observation Error

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Quantifies observation error through use of a “Gold Standard” of observations.

Usage

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

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.

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.

Note

This function is used to calculate values for the measurement.error function.

Author(s)

Matt Pocernich

See Also

measurement.error

Examples

1
2
3
4
5
6
7
obs <- round(runif(100))
gold <- round(runif(100) )
observation.error(obs, gold)

## Pirep gold standard

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

Example output

Loading required package: fields
Loading required package: spam
Loading required package: dotCall64
Loading required package: grid
Spam version 2.2-2 (2019-03-07) is loaded.
Type 'help( Spam)' or 'demo( spam)' for a short introduction 
and overview of this package.
Help for individual functions is also obtained by adding the
suffix '.spam' to the function name, e.g. 'help( chol.spam)'.

Attaching package: 'spam'

The following objects are masked from 'package:base':

    backsolve, forwardsolve

Loading required package: maps
See https://github.com/NCAR/Fields for
 an extensive vignette, other supplements and source code 
Loading required package: boot
Loading required package: CircStats
Loading required package: MASS
Loading required package: dtw
Loading required package: proxy

Attaching package: 'proxy'

The following object is masked from 'package:spam':

    as.matrix

The following objects are masked from 'package:stats':

    as.dist, dist

The following object is masked from 'package:base':

    as.matrix

Loaded dtw v1.20-1. See ?dtw for help, citation("dtw") for use in publication.

$t
[1] 0.3333333

$u
[1] 0.5454545

$t
[1] 0.7166667

$u
[1] 0.7142857

verification documentation built on May 2, 2019, 1:24 a.m.