pred_profile: pred_profile

Description Usage Arguments Value Examples

View source: R/pred_profile.R

Description

Prediction Interval Profiles

Usage

1
2
3
4
5
6
7
8
pred_profile(
  x,
  probs = seq(0.01, 0.99, by = 0.01),
  method = c("tdist", "conformal", "quantile"),
  m.method = c("quantile", "deviation", "jackknife"),
  neval = 200,
  point.pred = c("mean", "median")
)

Arguments

probs

probabilities at which to calculate a probability interval

method

either "tdist", "conformal" or "quantile"

m.method

conformal method (quantile, deviation or jackknife)

Value

an object of class 'pred_profile'

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
set.seed(12345)
x <- rnorm(25)
## t-dist method
pp1 <- pred_profile(x)
## conformal - quantile
pp2 <- pred_profile(x, method = "conformal")
## conformal - deviation
pp3 <- pred_profile(x, method = "conformal", m.method = "deviation")
## conformal - jackknife
pp4 <- pred_profile(x, method = "conformal", m.method = "jackknife")
par(mfrow = c(2,2))
plot(pp1)
plot(pp2)
plot(pp3)
plot(pp4)
par(mfrow=c(1,1))

## End(Not run)

femiguez/predintma documentation built on July 5, 2021, 4:16 a.m.