Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 587 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 587 Bytes

pysure

Surrogate residuals for cumulative link and general regression models in Python


Calculates surrogate residuals for a statsmodels.miscmodels.ordinal_model.OrderedModel using the method described in Dungang and Zhang (2017) and implemented for R on CRAN.


Usage:

model = OrderedModel.from_formula("y ~ 1 + log_x", test_data, distr='logit')
results = modf_logit.fit(method='bfgs')
get_sur_resid(model, results)