newQuants {quantkriging}R Documentation

Revaluate Quantiles

Description

Generates new quantiles from a quantile object

Usage

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

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)

[Package quantkriging version 0.1.0 Index]