plot.si: Plot Insensitive Region

Description Usage Arguments Note Author(s) Examples

View source: R/plot.si.R

Description

This function provides a visual representation of the sensitivity intervals.

Usage

1
2
## S3 method for class 'si'
plot(x, effect = 0, ...)

Arguments

x

An object of class 'si'; output of senslm and sensIvreg.ivreg.

effect

Optional value of the null treatment effect.

...

Optional arguments for the R plotting function.

Note

This function is called as a part of plotting object of class 'sensIvregEX'.

Author(s)

Bikram Karmakar

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data("CigarettesSW", package = "AER")
CigarettesSW$rprice <- with(CigarettesSW, price/cpi)
CigarettesSW$rincome <- with(CigarettesSW, income/population/cpi)
CigarettesSW$tdiff <- with(CigarettesSW, (taxs - tax)/cpi)

library(AER)


lmfit <- lm(log(packs) ~ log(rprice) + log(rincome), data = CigarettesSW, subset = year == "1995")

z <- senslm(lmfit, variable = 'log(rprice)')
plot(z)

ivregEX documentation built on May 1, 2019, 10:08 p.m.