Dear Statalisters, I am new to the forum and struggling with the following issue: I am using lclogit on Stata 14.1, a command developed by Pacifico and Yoo (2013), to estimate a Latent class model.
I am trying to find a way to compute the McFadden Pseudo R-squared for my estimation, using the formula (1 - (loglikelihood_fullmodel/loglikelihood_constantonly)).
In other similar estimation commands (such as mixlogit) the pseudo r-square is either already computed, or both e(ll) and e (ll_0) are saved, making it possible to compute the R-squared. But it is not the case for LCLogit (I checked using ereturn, list).
Would you have any tips/idea of how I could compute either the constant only log-likelihood, or even directly the pseudo R-squared after using LClogit ?
Thank you in advance for your help,
Here below my code and the ereturn list:
I am trying to find a way to compute the McFadden Pseudo R-squared for my estimation, using the formula (1 - (loglikelihood_fullmodel/loglikelihood_constantonly)).
In other similar estimation commands (such as mixlogit) the pseudo r-square is either already computed, or both e(ll) and e (ll_0) are saved, making it possible to compute the R-squared. But it is not the case for LCLogit (I checked using ereturn, list).
Would you have any tips/idea of how I could compute either the constant only log-likelihood, or even directly the pseudo R-squared after using LClogit ?
Thank you in advance for your help,
Here below my code and the ereturn list:
Code:
lclogit Choice_card Prob_5 Prob_25 Prob_75 Prob_95 reversibility Cut area fishing time asc_A $best_inter, group(Card2) id(Id) nclass(2) membership(age education mangrove_use) lclogitml ereturn list scalars: e(N) = 949 e(ll) = -237.428347703645 e(nclasses) = 2 e(N_g) = 474 e(N_i) = 126 e(bic) = 658.6354078714462 e(caic) = 696.6354078714462 e(aic) = 550.85669540729 macros: e(title) : "Model estimated via GLLAMM" e(cmd) : "lclogitml" e(indepvars2) : "age education mangrove_use conservationist3 highincome" e(indepvars) : "Prob_5 Prob_25 Prob_75 Prob_95 reversibility Cut area fishing time asc_A.." e(depvar) : "Choice_card" e(id) : "Id" e(group) : "Card2" e(properties) : "b V" matrices: e(b) : 1 x 38 e(V) : 38 x 38 e(B) : 2 x 16 e(P) : 2 x 1 e(PB) : 1 x 16 e(CB) : 16 x 16 e(CMB) : 2 x 6
Comment