Learn R Programming

fanovaGraph (version 1.3.1)

threshold: Threshold indices

Description

All indices below a treshold are set to be zero.

Usage

threshold(graphlist, delta, scaled = TRUE, robust = FALSE)

Arguments

graphlist
a list representing the graph structure as obtained from estimateGraph
delta
numeric threshold, between 0 and 1 if scaled = TRUE
scaled
optional boolean, if TRUE, indices are normalized by the overall variance before for threshold cut, defaults to TRUE
robust
optional boolean, if TRUE, upper confidence intervals limits are used for the threshold cut instead of indices themselves, confidence intervals must be provided in graphlist, defaults to FALSE

Value

  • a list of a same structure as the input graphlist with thresholded indices and updated clique structure, see estimateGraph for a detailed description

Warning

The threshold cut is by default performed on scaled indices. For a cut on the original unscaled indices set scaled = FALSE.

References

Muehlenstaedt, T.; Roustant, O.; Carraro, L.; Kuhnt, S. (2011) Data-driven Kriging models based on FANOVA-decomposition, Statistics and Computing.

Examples

Run this code
# Kriging model prediction
x <- matrix(runif(100*3,-pi,pi),100,3)
KM <- km(~1, design = data.frame(x), response = ishigami.fun(x))
krigingMean <- function(Xnew) predict(object = KM, newdata = Xnew, 
    type = "UK", se.compute = FALSE, checkNames = FALSE)$mean
    
# full graph estimation
g <- estimateGraph(krigingMean, d=3, N=10000, q.arg=list(min=-pi, max=pi))
print(g[c(2,6)])
# threshold graph
g.cut <- threshold(g, delta = 0.1)
print(g.cut[c(2,6)])

Run the code above in your browser using DataLab