Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 73275

estout does not display estadd scalar (Pseudo-R2)

$
0
0
Dear statlist,
I try to calculate a pseudo R2 for a mixed effect model and also display it in output (following this thread):

Code:
sysuse auto, clear
eststo clear

* Regular model
eststo: mixed price c.mpg##c.mpg || foreign:
scalar llu = e(ll)
di llu

* Constant only model
qui mixed price || foreign:
scalar llr = e(ll)
di llr

* Computation of the pseudo r2
estadd scalar pr2 = 1 - llu/llr
*di "Pseudo-R2: " pr2

ereturn list
estout, stat(pr2)
In ereturn list I can see e(pr2) = .0235342435927753. However, in estout the cell for pr2 is empty.

I have read similar posts on the forum and updated all my addons. The problem remains. Any help would be appreciated. Thank you.

Viewing all articles
Browse latest Browse all 73275

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>