MIT-LCP / MIT-LCP/mimic-code

Unique number of subject_ids does not match the number stated in documentation

Open
#1,606 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
3.4k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Hello,

In the dataset's documentation, it is mentioned that the data contains information for 40,000 patients.
However, when computing the number of unique values in the subject_id column I receive a much greater number.
For example, I would like to know the number of patients who had a blood glucose test:

glucose_df = lebevents[lebevents['itemid'] == 50931] # 50931 is the itemid of the glucose test
print(glucose_df['subject_id'].nunique())

The output is 247,005 which is much greater than 40,000.
Thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file or test is named. Reproduce the shown subject_id count for itemid 50931, then inspect the dataset documentation's 40,000-patient statement and determine which population each figure describes; the work is done when the documentation and observed counts are reconciled.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas
Domain
data, documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.