Implement RegressionModel.pseudo_rsquared_adj
This commit is contained in:
parent
53a0e98227
commit
8899d1c968
@ -541,6 +541,12 @@ class RegressionModel:
|
|||||||
|
|
||||||
return 1 - self.ll_model/self.ll_null
|
return 1 - self.ll_model/self.ll_null
|
||||||
|
|
||||||
|
@property
|
||||||
|
def pseudo_rsquared_adj(self):
|
||||||
|
"""McFadden's pseudo *R*:sup:`2` statistic, adjusted for number of parameters"""
|
||||||
|
|
||||||
|
return 1 - (self.ll_model - self.dof_model) / self.ll_null
|
||||||
|
|
||||||
def shap(self, **kwargs):
|
def shap(self, **kwargs):
|
||||||
"""
|
"""
|
||||||
Compute SHAP values for the model
|
Compute SHAP values for the model
|
||||||
|
Loading…
Reference in New Issue
Block a user