plot: Plot methods

plotR Documentation

Plot methods

Description

Some plot utilities for object of class otlse.

Usage

## 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, ...) 

Arguments

x

Object of class tlse.

y

alias for which for compatibility with plot

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 none.

level

The confidence interval level if included.

newdata

A named vector to fix some covariates. By default, covariates not selected by which are set to their sample means.

legendPos

The legend position.

vcov.

An alternative function to compute the covariance matrix of the least squares estimates. The default vcov method for lm objects.

col0

The line color for the control group.

col1

The line color for the treated group.

...

Additional argument to pass to the vcov. function.

Examples

data(simData)
mod <- setModel(Y~Z|~X1+X2, data=simData)
fit <- tlse(mod, seType="lm", vcov.=sandwich::vcovHC, type="HC")
plot(fit, "X1")

causalTLSE documentation built on March 31, 2023, 3:07 p.m.

Related to plot in causalTLSE...