Hi all,
I am trying to estimate a hedonic price model. The first step used is estimating the Box Cox and predicting: lhsonly, rhsonly, lamda and theta. Then, I want to estimate the Vuong test to compare and identify the best transformation. Hence, manually to compare e.g., log-lin vs. lin-log, I use the following:
gen lhsonlysq = lhsonly^2
gen rhsonlysq = rhsonly^2
gen diff_log_lin_vs_lin_log = lhsonlysq - rhsonlysq
sum diff_log_lin_vs_lin_log
*mean=-4.29*
gen diff_log_lin_vs_lin_log_B=diff_log_lin_vs_lin_log-(-4.29)
gen diff_log_lin_vs_lin_log_B2=diff_log_lin_vs_lin_log _B^2
sum diff_log_lin_vs_lin_log_B2
*mean=13912.15*
then, I continue with some more estimations in Microsoft Excel to find the Vuong test for these two transformations and the rest of the combinations.
QUESTION: Is there an easier way to calculate the Vuong test directly from STATA 14, and without using excel?
Best regards,
Petjon
Related Posts with Vuong test for hedonic price model - Regression
IV estimationI have a dummy dependent variable and one instrument. How do I operate IV estimation? What tests are…
Twoway graph generates vertical lines at min/max values of predictorDear Statalist, Why does my twoway graph generate vertical lines at the minimum and maximum values …
Logit: illustrating interaction effectsDear Statalist, I am using Stata 14.2 with Windows 10. I have a logit model on partner acquisition …
Export xtsum and tabstat into Microsoft WordHi everybody! I am trying to export two tables (xtsum and tabstat) into Word, but I have not succee…
Methods/Design QuestionHello, I am completing a data request to our State Education Agency for student level data from 200…
Subscribe to:
Post Comments (Atom)
0 Response to Vuong test for hedonic price model - Regression
Post a Comment