Hi, I have a wierd problem.
Previously, when I define the path as:
cd "F:\360CloudUp\Research\Projects\Research_Projects \!Accept -- SC\Empirical"
global dofiles= "/dofiles"
global rawdata= "/rawdata"
global workingdata= "/workingdata"
global tables= "/tables"
And I run IV regression as:
xi: xtivreg2 capreturn (ln_mean_4_total = ln_spend_popu ln_admin_income_popu) L6.ln_mean_4_total $xlist i.year, fe first cluster(id)
outreg2 using tables/Table_8.xls, replace label addstat(First stage F-stat, e(widstat), Hansen, e(j), Hansen p value, e(jp))
Hansen test and its p value can be reported in the excel file.
Afterwards, when I run another project with definition of the path:
global dofiles="F:\360CloudUp\Research\Projects\Research_ Projects\!!_Data_and_Empirics\CFPS\DFC\dofiles"
global rawdata="F:\360CloudUp\Research\Projects\Research_ Projects\!!_Data_and_Empirics\CFPS\rawdata"
global workingdata="F:\!!_Data_and_Empirics\CFPS\DFC\work ingdata"
global tables="F:\360CloudUp\Research\Projects\Research_P rojects\!!_Data_and_Empirics\CFPS\DFC\tables"
and run the regression:
xi: xtivreg2 lnconsumer_exp (cpre_total_index=IV_city_Hangzhou1 IV_city_Hangzhou2 IV_city_Hangzhou3) i.year, fe first cluster(city)
outreg2 using $tables/Table_7_cpre_Hangzhou_IV.xls, replace addstat(First stage F-stat, e(widstat), Hansen, e(j), Hansen p value, e(jp))
it says:
check eret list for the existence of e(jp)
invalid syntax
r(198);
I don't know why the error has appeared. It seems that the two codes are the same.
Thank you.
Related Posts with outreg2 with e(jp)
Nested logit model VS two binary logit modelsHello, I have a quick question regarding the nested logit model. I am trying to develop a model as …
Differences in differences with matchingHi, I'm working with a survey data which covers 5 rounds (1995, 2000, 2005 , 2010 and 2015). Howeve…
How to pairwise t-test slopes of a three-way interaction?Hi, I hope you had a merry Christmas. Currently I face difficulties on how to pairwise t-test a th…
How do I save the mean as well as the confidence interval results from bootstrap in every interation and plot it in a graph? I want to save the mean value as well as the confidence interval in every iteration and plot it in …
Proper model for highly skewed dependent variable.Hello, I had previously asked a similar question, but it was partly unanswered, so I'm narrowing do…
Subscribe to:
Post Comments (Atom)
0 Response to outreg2 with e(jp)
Post a Comment