Model of class ivreg

ivreg_1

Format

An object of class ivreg of length 18.

Examples

data(CigarettesSW)
#> Warning: data set 'CigarettesSW' not found
CigarettesSW$rprice <- with(CigarettesSW, price / cpi)
#> Error in with(CigarettesSW, price/cpi): object 'CigarettesSW' not found
CigarettesSW$rincome <- with(CigarettesSW, income / population / cpi)
#> Error in with(CigarettesSW, income/population/cpi): object 'CigarettesSW' not found
CigarettesSW$tdiff <- with(CigarettesSW, (taxs - tax) / cpi)
#> Error in with(CigarettesSW, (taxs - tax)/cpi): object 'CigarettesSW' not found
ivreg_1 <- ivreg( log(packs) ~ log(rprice) + log(rincome) | log(rincome) + tdiff + I(tax / cpi), data = CigarettesSW, subset = year == "1995" )
#> Error in ivreg(log(packs) ~ log(rprice) + log(rincome) | log(rincome) + tdiff + I(tax/cpi), data = CigarettesSW, subset = year == "1995"): could not find function "ivreg"