Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The problem is to be solved with R programming The file outcomes.csv is available here: https://drive.google.com/file/d/1CbNEaqO5Fym08chRS5vG6J2MBP2iE0JZ/view?usp=sharing , simply copy the link and paste it in
The problem is to be solved with R programming
The file outcomes.csv is available here: https://drive.google.com/file/d/1CbNEaqO5Fym08chRS5vG6J2MBP2iE0JZ/view?usp=sharing , simply copy the link and paste it in your browser
2. You are given a csv file (outcomes.csv) that represents the outcomes of patients admitted to ICU. There are 4 columns a. RecordID: record id of a patient. b. Length of stay (days): number of days between the patient's admission to the ICU and the end of hospitalization. Missing values are indicated as NA. C. Survival (days): If the patient's death was recorded in or out of hospital), then Survival is the number of days between ICU admission and death; otherwise, Survival is assigned the value-1. d. In-hospital death (0: survived during hospital stay, or 1: died-in-hospital) Write R code to find the following: (50 points) A. Number of patients who survived during their stay in hospital. B. Number of patients who died during their stay in hospital. C. Average of number of survival days among the patients who died-in-hospital. D. Among the patients who survived during their stay in hospital, how many of them stayed in the hospital for least 5 days. E. Among the patients who survived during their stay in hospital, how many of them stayed in the hospital less than 7 daysStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started