powered by
Plot curve from FRTCI.test object.
# S3 method for FRTCI.test plot(x, true.tau, xlab, ylab, true.tau.col, plot.envelope, ci.line.col, ...)
An object of class FRTCI.test
FRTCI.test
The true value of tau, if known. Default is NULL.
X-axis label. Default is tau.
Y-axis label. Default is "p-value".
Color to plot true tau value, if provided. Default is red.
Plot envelope around tested values of tau. Default is TRUE.
Color to plot confidence interval around estimated treatment effect. Default is blue.
Further arguments to be passed to print.FRTCI.test()
print.FRTCI.test()
Z <- rep(c(0, 1), 100) tau <- 4 Y <- ifelse(Z, rnorm(100, tau), rnorm(100, 0)) df <- data.frame(Y=Y, Z=Z) tst <- detect_idiosyncratic(Y ~ Z, df, B = 50, grid.size = 50) plot(tst)
Run the code above in your browser using DataLab