Skip to main content

Package for calc difficult of test tasks and ability of test subjects by Rasch model (IRT 0).

Project description

irt_test

Package for calc difficult of test tasks and ability of test subjects by Rasch model (IRT 0).

Installation

You can install irt_test using pip:

pip install irt-test

Example Usage

Input DataFrame example:

Task 1 Task 2 Task 3 Task 4 Task 5 Task 6 Task 7 Task 8 Task 9 Task 10 Task 11
Julia 1 1 1 1 1 1 1 1 0 1 1
Ivan 1 1 1 1 1 1 1 0 1 0 1
Anna 1 1 1 1 1 1 0 1 0 0 1
Peter 1 1 1 1 1 1 0 1 0 0 1
Helen 1 1 1 1 1 1 0 1 0 0 1
Bill 1 1 1 1 1 0 1 0 0 0 1
Tony 1 1 1 1 0 1 0 0 0 0 1
Dmitry 1 0 1 0 1 0 0 0 0 0 1
Natasha 0 1 0 1 0 0 0 0 0 0 1
Jimmy 0 0 0 0 0 0 0 0 0 0 1

For get logits of tasks and subjects use 'irt' function:

from irt_test.irt import irt

# Get logits and additional info from IRT0 model
irt_result = irt(df)
# Abilites of test subjects
irt_result.abilities
0
Julia 4.72094
Ivan 3.29019
Anna 1.97836
Peter 1.97836
Helen 1.97836
Bill 0.711974
Tony -0.451242
Dmitry -2.2367
Natasha -3.0347
# Difficult of test tasks
irt_result.difficult
0
Task 1 -2.84779
Task 2 -2.84779
Task 3 -2.84779
Task 4 -2.84779
Task 5 -1.4046
Task 6 -0.212051
Task 7 2.3964
Task 8 1.59305
Task 9 4.50918
Task 10 4.50918
# "IRT model error
irt_result.err

0.0196

# Can't get logits for these subjects
irt_result.rejected_subjects

['Jimmy']

# Can't get logits for these tasks
irt_result.rejected_tasks

['Task 11']

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

irt_test-0.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

irt_test-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file irt_test-0.1.1.tar.gz.

File metadata

  • Download URL: irt_test-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.7.6-200.fc39.x86_64

File hashes

Hashes for irt_test-0.1.1.tar.gz
Algorithm Hash digest
SHA256 96d66e2c8b361bf1950c89897bbab74af92df874401aa15300b0177577dffe02
MD5 b26760b162f59c8a3182615f406b9d5e
BLAKE2b-256 5149f7883139d439999b847b06efdd9def81f29b8457c53cab86cab7b2f21956

See more details on using hashes here.

File details

Details for the file irt_test-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: irt_test-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.7.6-200.fc39.x86_64

File hashes

Hashes for irt_test-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 740e9ee86cef00ecd2bb1fc9178b811d8d95c4097d42c0c27bcda671d019672b
MD5 fc1d17be0be0aa7615418a85ec21db74
BLAKE2b-256 bef42039b8518c1612109d58db96a033126abc47a51e280fdd8f627c1953532a

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