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
Weak IV test postestimation test when using ivreghdfe command?Dear STATA community, I am hoping you can help me find a command I am looking for. My coauthor and …
Guarantee 3 consecutive observations before and after the eventDear Stata Users, I need to keep just those firms (gvkey) that have 3 year consecutive observations…
Generate a moving window averageIs there an easy way to generate a moving window average? For instance, for every 5 minutes of Ta_NO…
Simple help with global macrosHello, I believe I incorrectly posted this to the Statalist earlier today. I recognize this questio…
LPOLY: How can I change the scale of the axis on the lpoly graph?Dear Stata users: When I do the lpoly graph, it seems no option allows me to restrict my scale of t…
Subscribe to:
Post Comments (Atom)
0 Response to Vuong test for hedonic price model - Regression
Post a Comment