aiStaHau | R Documentation |
Conduct a Hausman test on a static AIDS model and report the result of likelihood ratio test.
aiStaHau(x, instr, choice = FALSE,
exog = c("none", "all", "partial"), shift.new = NULL)
x |
an object of class |
instr |
a single time series data as instrument for the expenditure variable in AIDS model. |
choice |
a logical value of whether to take a difference on the right-hand |
exog |
how the exogenous shift variables in the AIDS model should be included in the Hausman test; "none" for nothing; "all" for all the dummyr or seasonality variables; and "partial" for some. |
shift.new |
when |
Conduct a Hausman test on a static AIDS model and report the result of likelihood ratio test. Note that logarithm is taken on every variable in the auxiliary regression. The dependant variable is the real total expenditure. The independant variables include the lagged value of the real total expenditure, the instrumental variable as supplied, the price variables, and some or all shift variables as included in the AIDS model.
Return a data frame object with the statistics and p values for the four tests by equation.
daHau |
data used in estimating the Hausman test. |
formuHau |
formula for estimating the Hausman test. |
regHau |
regression for the Hausman test. |
daFit |
revised data with the fitted value of expenditure included. |
aiBase |
the base static AIDs model estimated. |
aiHaus |
the reestimated static AIDS model using the fitted value of expenditure. |
ratio |
result of the likelihood ration test for the Hausman test. |
Changyou Sun (edwinsun258@gmail.com)
Wan, Y., C. Sun, and D.L. Grebner. 2010. Analysis of import demand for wooden beds in the United States. Journal of Agricultural and Applied Economics 42(4):643-658.
aiStaFit
; print.aiFit
.
# see the examples for 'aiDynFit'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.