Skip to content
/ CSC Public

Code for Groups Analysis part of "Performance of Crisis Standards of Care Guidelines in a National Cohort of Critically Ill COVID-19 Patients" Paper

Notifications You must be signed in to change notification settings

maheetha/CSC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Groups Analysis Code for 'Performance of Crisis Standards of Care Guidelines in a National Cohort of Critically Ill COVID-19 Patients"

This code is for the groups analysis

Running Instructions:

Rscript Groups_Analysis.R [input file] [group size] [number of iterations] [size of each bootstrap] [final output filename]

Example: Rscript Groups_Analysis.R input.txt 2 100 1000 final.txt

*** Note: Code was slightly modified to do analysis by Race ***

INPUT DESCRIPTIONS:

  1. Input File: see "Example Input" for columns and format
  2. Group size: The size of each group (the paper did groups of 2 and groups of 5)
  3. Number of Iterations: The total n for the distribution of percentages (the paper used 100)
  4. Size of each Bootstrap: the number of random groups in each iteration to develop the percentages
  5. Final output: name of final output

INPUT FORMATTING:

Necessary Columns IDs and Information:

  1. Outcomes : 0 or 1
  2. NY: New York Algorithm's Scores
  3. Colorado: Colorado Algorithm's Scores
  4. SOFA: Raw Sofa Algorithm's Scores
  5. NY_Age: New York with Age as Tie-breaker Algorithm's scores
  6. Colorado_Age: Colorado with Age as Tie-breaker Algorithm's scores
  7. SOFA_Age: SOFA with Age as Tie-breaker Algorithm's scores

Optional Columns:

  1. Race
  2. Ethnicity
  3. Gender

FINAL OUTPUT FORMATTING:

  1. Column 1: Type of Algorithm
  2. Column 2: Mean percentage of decisions made without lottery
  3. Column 3: 95% CI for percentage of decisions made without lottery
  4. Column 4: Mean percentage of non-lottery decisions that chose a surviving patient
  5. Column 5: 95% CI for percentage of non-lottery decisions that chose a surviving patient
  6. Colunn 6: Mean percentage of all decisions that chose a surviving patient
  7. Colunn 7: 95% CI of all decisions that chose a surviving patient

About

Code for Groups Analysis part of "Performance of Crisis Standards of Care Guidelines in a National Cohort of Critically Ill COVID-19 Patients" Paper

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages