Skip to content

Surrogate residuals for cumulative link and general regression models in Python

License

Notifications You must be signed in to change notification settings

jmccrosky/pysure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Surrogate residuals for cumulative link and general regression models in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages