Skip to main content

Surrogate residuals for logistic regression

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysure-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysure-0.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file pysure-0.1.0.tar.gz.

File metadata

  • Download URL: pysure-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for pysure-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4f528fb6cdd8b80b16de63b0485fb1954baf0a03fed4b7a6b5d84fe3be527108
MD5 7785e542724678a3ac4cbe8d12e9025c
BLAKE2b-256 b416e32435ac3bdc59b93bee1d944fb1bfcdccdd5c1ac9458d958a63a53746a6

See more details on using hashes here.

File details

Details for the file pysure-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pysure-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for pysure-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a528aa9e735e546c4a234132972ea3d22f50cc183ee3aeb29f84e8ffb66d6bd
MD5 875c015cc18b6b55e69398369d708f35
BLAKE2b-256 5dbe367568ff093a1a3e303258995b23dc5385cde774dad9ea90615eda3d30c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page