Visualizes the estimated conditional mean functions \(\hat{h}_j(x)\), their lower envelope, and the confidence bound from the CSPA test.
Usage
cspa_test_plot(
object = NULL,
Y = NULL,
X = NULL,
level = 0.05,
trim = 0,
prewhiten = -1L,
preselect = TRUE,
ylab = "Loss Difference",
xlab = "Conditioning Variable"
)Arguments
- object
A
cspa_testobject returned bycspa_test, or omitted ifYandXare provided directly.- Y
An
n x Jmatrix of loss differentials. Ignored ifobjectis provided.- X
An
n x 1numeric vector of the conditioning variable. Ignored ifobjectis provided.- level
Significance level (e.g., 0.05). Ignored if
objectis provided.- trim
Trimming parameter. Default
0.- prewhiten
Pre-whitening order. Default
-1.- preselect
Logical; adaptive inequality selection. Default
TRUE.- ylab
Label for the y-axis. Default
"Loss Difference".- xlab
Label for the x-axis. Default
"Conditioning Variable".
