Description Usage Arguments Note Author(s) Examples
This function provides a visual representation of the sensitivity intervals.
1 2 |
x |
An object of class 'si'; output of |
effect |
Optional value of the null treatment effect. |
... |
Optional arguments for the R plotting function. |
This function is called as a part of plotting object of class 'sensIvregEX'.
Bikram Karmakar
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.