newQuants: Revaluate Quantiles

Description Usage Arguments Value Examples

View source: R/newQuants.R

Description

Generates new quantiles from a quantile object

Usage

1
newQuants(QKResults, quantv)

Arguments

QKResults

Output from the quantKrig function.

quantv

Vector of quantile values alpha between 0 and 1,

Value

The same quantile object with new estimated quantiles.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
X <- seq(0,1,length.out = 20)
Y <- cos(5*X) + cos(X)
Xstar <- rep(X,each = 100)
Ystar <- rep(Y,each = 100)
e <- rchisq(length(Ystar),5)/5 - 1
Ystar <- Ystar + e
lb <- c(0.0001,0.0001)
ub <- c(10,10)
Qout <- quantKrig(Xstar,Ystar, seq(0.05,0.95, length.out = 7), lower = lb, upper = ub)

Qout2 <- newQuants(Qout, c(0.025, 0.5, 0.975))
QuantPlot(Qout2)

quantkriging documentation built on March 13, 2020, 2:54 a.m.