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
PSM method againHello every one i m doing my analysis for my research and i need to do endogeneity test by using PSM…
Help estimating 3d panel dataHello, I'm working with this dataset Array and I want to run a fixed effects regression, so I type …
match couples in a pooled quarterly cross section (Q1 only) with hhid, wave and survey year known, hhid unique to each quarter only.Dear Statalist, I am trying to match couples (married or cohab) in a pooled cross section. I have a…
Changing the line colour of panel data line plot according to an indicator variableDear forum, I have a set of longitudinal patient data representing patient id (subjid), time in stud…
Graph export multiple using loopsI have been trying to create and export multiple graphs using the following code, instead I am getti…
Subscribe to:
Post Comments (Atom)
0 Response to Vuong test for hedonic price model - Regression
Post a Comment