I am running a clogit model and I installed spost13 to get the fitstats for the model.
here is the code (after the clogit)
est sto calls1
estadd fitstat
. estadd fitstat
Measures of Fit for clogit of callc1
(Multiple outcomes per group for clogit: Count R2 may not be valid)
Log-Lik Intercept Only: -9407.220 Log-Lik Full Model: -9361.516
D(542): 18723.032 LR(11): 91.407
Prob > LR: 0.000
McFadden's R2: 0.005 McFadden's Adj R2: 0.004
ML (Cox-Snell) R2: 0.152 Cragg-Uhler(Nagelkerke) R2: 0.152
Count R2: 0.128
AIC: 33.897 AIC*n: 18745.032
BIC: 15300.108 BIC': -21.938
BIC used by Stata: 18863.941 AIC used by Stata: 18745.032
added scalars:
I am using esttab to create the output and the code (pl see below) produces the table with results but strangely, not the pseudo r2.
Maybe the estadd is not adding the scalars for some reason or maybe I am addressing the statistic incorrectly.
I expect the fix is simple but it is eluding me!
I would appreciate any help. I am running several models and I am almost resigned to copying and pasting the pseudo R2 by hand into tables from the output window.
Thanks
--------------------------
. esttab callc1 , cells(b(star fmt(5)) se(par fmt(5))) scalars(N ll r2_ml aic bic )
----------------------------
(1)
callc1
b/se
----------------------------
callc1
sumproduct1 -0.00348***
(0.00097)
sumissue1 0.00154
--some rows deleted--
2.quarter -0.19770
(0.10303)
3.quarter 0.15450
(0.08316)
4.quarter 0.00126
(0.07408)
----------------------------
N 365837
ll -9361.5
r2_ml .
aic 18745.0
bic 18863.9
----------------------------
Related Posts with esttab result table does not provide pseudo r2 (r2_ml) calculated with fitstat...(clogit model)
🙋 How to display full matrix names?This Code: clear all version 15.1 matrix A = 32 matrix rownames A = interview__id matrix list A …
Coding linear time trend with missing yearsI am familiar with creating linear time trends. For example, if I have study years 1996, 1997, 1998 …
Doubts on Diff-in-Diff methodDear Stata users, I am writing this post hoping that someone could help me. Here the story, I am a…
Can I regress company data as dependent and macroeconomic data as independent?Can I regress company data (as firm performance - the dependent variable) on macroeconomic data (as …
Adding category to variable and sustain response after point of change in longitudinal datasetDear Stata Listers, I am working with a 19 wave longitudinal dataset of around 1,000 respondents, w…
Subscribe to:
Post Comments (Atom)
0 Response to esttab result table does not provide pseudo r2 (r2_ml) calculated with fitstat...(clogit model)
Post a Comment