plot.FRTCI.test | R Documentation |
Plot curve from FRTCI.test object.
## S3 method for class 'FRTCI.test'
plot(x, true.tau, xlab, ylab, true.tau.col, plot.envelope, ci.line.col, ...)
x |
An object of class |
true.tau |
The true value of tau, if known. Default is NULL. |
xlab |
X-axis label. Default is tau. |
ylab |
Y-axis label. Default is "p-value". |
true.tau.col |
Color to plot true tau value, if provided. Default is red. |
plot.envelope |
Plot envelope around tested values of tau. Default is TRUE. |
ci.line.col |
Color to plot confidence interval around estimated treatment effect. Default is blue. |
... |
Further arguments to be passed to |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.