How do we assess degree of fitness in a Generalized Linear Model (GLM) since R-squared is not given. For example, following are results of regression in iris
dataset with code: smf.glm('SL~Species+SW+PL', data=irisdf, family=sm.families.Gaussian(sm.families.links.log)).fit()
using statsmodels.
Generalized Linear Model Regression Results
==============================================================================
Dep. Variable: SL No. Observations: 150
Model: GLM Df Residuals: 145
Model Family: Gaussian Df Model: 4
Link Function: log Scale: 0.096285
Method: IRLS Log-Likelihood: -34.807
Date: Fri, 17 Jul 2020 Deviance: 13.961
Time: 12:44:23 Pearson chi2: 14.0
No. Iterations: 6
Covariance Type: nonrobust
=========================================================================================
coef std err z P>|z| [0.025 0.975]
-----------------------------------------------------------------------------------------
Intercept 1.1842 0.046 26.024 0.000 1.095 1.273
Species[T.versicolor] -0.1335 0.035 -3.772 0.000 -0.203 -0.064
Species[T.virginica] -0.2046 0.046 -4.405 0.000 -0.296 -0.114
SW 0.0713 0.014 5.118 0.000 0.044 0.099
PL 0.1244 0.010 12.214 0.000 0.104 0.144
=========================================================================================
==================== Summary2() ====================
Results: Generalized linear model
=====================================================================
Model: GLM AIC: 79.6145
Link Function: log BIC: -712.5809
Dependent Variable: SL Log-Likelihood: -34.807
Date: 2020-07-17 12:44 LL-Null: -492.86
No. Observations: 150 Deviance: 13.961
Df Model: 4 Pearson chi2: 14.0
Df Residuals: 145 Scale: 0.096285
Method: IRLS
---------------------------------------------------------------------
Coef. Std.Err. z P>|z| [0.025 0.975]
---------------------------------------------------------------------
Intercept 1.1842 0.0455 26.0241 0.0000 1.0950 1.2734
Species[T.versicolor] -0.1335 0.0354 -3.7717 0.0002 -0.2028 -0.0641
Species[T.virginica] -0.2046 0.0464 -4.4051 0.0000 -0.2956 -0.1136
SW 0.0713 0.0139 5.1183 0.0000 0.0440 0.0986
PL 0.1244 0.0102 12.2141 0.0000 0.1044 0.1443
=====================================================================
What is the equivalent of R-squared
in above analysis?