plot | R Documentation |
Some plot utilities for object of class otlse
.
## S3 method for class 'tlse'
plot(x, y, which = y, interval = c("none", "confidence"),
level = 0.95, newdata = NULL, legendPos = "topright",
vcov. = NULL,
col0=2, col1=5, ...)
x |
Object of class |
y |
alias for |
which |
Which covariate to plot against the outcome variable. It could be an integer or a character |
interval |
The type of confidence interval. The default is |
level |
The confidence interval level if included. |
newdata |
A named vector to fix some covariates. By default,
covariates not selected by |
legendPos |
The legend position. |
vcov. |
An alternative function to compute the covariance
matrix of the least squares estimates. The default |
col0 |
The line color for the control group. |
col1 |
The line color for the treated group. |
... |
Additional argument to pass to the |
data(simData)
mod <- setModel(Y~Z|~X1+X2, data=simData)
fit <- tlse(mod, seType="lm", vcov.=sandwich::vcovHC, type="HC")
plot(fit, "X1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.