plot.ctseff: Plot estimated average effect curve for continuous treatment

Description Usage Arguments Value References Examples

View source: R/plot.ctseff.R

Description

plot.ctseff is used to plot results from ctseff fit.

Usage

1
plot.ctseff(ctseff.res)

Arguments

ctseff.res

output from ctseff fit.

Value

A plot of estimated effect curve with pointwise confidence intervals.

References

Kennedy EH, Ma Z, McHugh MD, Small DS (2017). Nonparametric methods for doubly robust estimation of continuous treatment effects. Journal of the Royal Statistical Society, Series B. arxiv:1507.00747

Examples

1
2
3
4
5
n <- 500; x <- matrix(rnorm(n*5),nrow=n)
a <- runif(n); y <- a + rnorm(n,sd=.5)

ce.res <- ctseff(y,a,x, bw.seq=seq(.2,2,length.out=100))
plot.ctseff(ce.res)

ehkennedy/npcausal documentation built on June 20, 2018, 4:24 a.m.