Description Usage Arguments Details Value Author(s) See Also Examples
Performs a sensitivity analysis of the least squared regression
1 |
lmfit |
An obeject of class "lm". |
coefmat |
Optional matrix of class "coeftest" an output of |
variable |
Treatment variable of interest. |
delta1 |
A numeric vector of values of the first sensitivity parameter. Default value |
alpha |
Significance level. Default at 0.05. |
... |
May be ignored, used in |
delta1 is the partial correlation of the unobservable and the treatment. It measures the amount of violation in the assumption of no-unmeasured confounding.
Returns an object of class "si".
An object if class "si" is essentially a matrix of two columns for the the upper and lower sensitivity limits corresponding to the sensitivity parameters.
Bikram Karmakar
sensIvreg
, plot.sensIvregEX
, plot.si
1 2 3 4 5 6 7 8 9 |
data("CigarettesSW", package = "AER")
CigarettesSW$rprice <- with(CigarettesSW, price/cpi)
CigarettesSW$rincome <- with(CigarettesSW, income/population/cpi)
CigarettesSW$tdiff <- with(CigarettesSW, (taxs - tax)/cpi)
lmfit <- lm(log(packs) ~ log(rprice) + log(rincome), data = CigarettesSW, subset = year == "1995")
z <- senslm(lmfit, variable = 'log(rprice)')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.