Recchia, Anthony. “R-Squared Measures for Two-Level Hierarchical Linear Models Using SAS”.
Journal of Statistical Software, Code Snippets
, vol. 32, no. 2, Jan. 2010, pp. 1-9, doi:10.18637/jss.v032.c02.