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
Recoding rules based on string variableHello Statalist, I have a particularly unique, perhaps esoteric question. I am attempting to create…
Extension files of OUT.file using X-12 ArimaHi, I am a novice user of Stata and in dire need of help. I am studying the monthly beer sales in bo…
Generate unique ID of 4 digitsHello, My data doesn't have a unique identifier and I want to generate a unique id of each row of 4…
Alternative analyses to xtologit/xtoprobit for score as dependent variable and dummy as independent variableHi everyone, I’m new to Stata (using version 15.1 on Windows 10) and regard my statistical knowledg…
generating a new variable based on industryHi Stata users, I am trying to generate a new variable (Industry_revenue) for the data example show…
Subscribe to:
Post Comments (Atom)
0 Response to Vuong test for hedonic price model - Regression
Post a Comment