Learn R Programming

SEL (version 1.0-4)

predict.SEL: Evaluate the expert's density (or cdf)

Description

Evaluate the density or cdf of an SEL object.

Usage

# S3 method for SEL
predict(object, newdata = seq(object$bounds[1],
      object$bounds[2], length = 101), type = c("density", "cdf"), deriv, ...)

Value

A numeric vector

Arguments

object

An SEL object.

newdata

Where to evaluate the distribution.

type

Determines whether to evaluate the expert's density or cdf (only if deriv is missing).

deriv

Determines which derivative of the expert's distribution should be evaluated.

...

...

Author

Bjoern Bornkamp

References

Bornkamp, B. and Ickstadt, K. (2009). A Note on B-Splines for Semiparametric Elicitation. The American Statistician, 63, 373--377

See Also

SEL

Examples

Run this code
# example from O'Hagan et al. (2006)
x <- c(177.5, 183.75, 190, 205, 220)
y <- c(0.175, 0.33, 0.5, 0.75, 0.95)

default   <- SEL(x, y, Delta = 0.05, bounds = c(165, 250))
predict(default, newdata = c(200, 205))

Run the code above in your browser using DataLab