Skip to main content

This is a python library to calculate 12-item Short Form Survey (SF-12) score.

Project description

SF-12 Library

Overview

This is a python library to calculate 12-item Short Form Survey (SF-12) score. The SF-12 is a general health questionnaire that was first published in 1995 as part of the Medical Outcomes Study (MOS). The SF-12 was constructed using questions drawn from each of the 8 dimensions of the MOS 36-item Short Form Survey (SF-36). It is designed to have similar performance to the SF-36, while taking less time to complete.

Two summary scores are reported from the SF-12:

  • Mental Component Score (MCS-12)
  • Physical Component Score (PCS-12)

The scores may be reported as Z-scores (difference compared to the population average, measured in standard deviations). The United States population average PCS-12 and MCS-12 are both 50 points. The United States population standard deviation is 10 points. So each increment of 10 points above or below 50 corresponds to one standard deviation away from the average. For more information, refer to the original publication:

  • Ware, John E., Susan D. Keller, and Mark Kosinski. SF-12: How to score the SF-12 physical and mental health summary scales. Health Institute, New England Medical Center, 1995.

Basic Usage

To run the SF-12 script, use the following command:

poetry run python sf12.py

Development

Running the Application

To run the application, use:

poetry run python sf12.py

Running Tests

To run the tests, use:

poetry run pytest

Publish to pypi

To run the tests, use:

poetry build 
poetry publish

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

score_calculator-1.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

score_calculator-1.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file score_calculator-1.1.0.tar.gz.

File metadata

  • Download URL: score_calculator-1.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11

File hashes

Hashes for score_calculator-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a9e3f5965f2ffa54c2923ed4e2d095496e0177837346f1987707f87d1e50a241
MD5 f52bbaea2502f32f6ec04387aafe02d7
BLAKE2b-256 e6b597250675b59c85636632e4b979c47035669895aacd0a0953d088074f65b0

See more details on using hashes here.

File details

Details for the file score_calculator-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: score_calculator-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11

File hashes

Hashes for score_calculator-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7570d09a9a0fc8194f0eacdd0961235f6a0b73522200d0c1cdcd0e418ed1e1b
MD5 32aabc3aec42b3222235798032ab3cf0
BLAKE2b-256 8f627bcf62d463f995cbc2b730eaeed72fc951565648ea90292bbda25f8fdb21

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