Question: Solve in RStudio: provide solution with formulas Read the provided dataA dataset, which contains data for 1102 cancer patients who took part in a 5-year

Solve in RStudio: provide solution with formulas

Read the provided dataA dataset, which contains data for 1102 cancer patients who took part in a 5-year clinical trial. At the start of the trial patients were randomly divided into three groups: placebo group, current drug group, new drug group. Variables are as follows: patientID is a unique patient number, age is the age at the start of the trial, sex is obvious, treatment denotes to which group a given patient was assigned: placebo group (placebo), current drug group (drugA), or new drug group (drugB), death denotes whether a patient died within 5 years form the start of the trial, years say how much time (in years) did a patient live after the trial started (if he/she lived for more than 5 years, i.e. more than the trial length, then the value of years is missing), and comorb denote how many comorbid conditions (e.g. diabetes, cardiac problems, kidney failure) did a patient have at the start of the trial. Answer the following questions:

What was the average time to death for those who died within 5 years from the start of the trial? How much was this rate equal to?

What is the ID of the youngest woman with no comorbidities who died?

Out of the age groups [50, 60) and [60, 70) which one had a higher survival rate?

patientID age sex treatment death years comorb
ijz448u 61 female placebo 0 NA 1
mjd397n 70 female placebo 1 2,1126247 3
bhx778v 72 female placebo 1 1,08552999 2
tvw756m 71 male placebo 1 1,30583999 3
plh588t 58 female drugA 0 NA 1
nak372i 55 male placebo 0 NA 1
jsj899n 70 male drugA 0 NA 2
vfv311g 61 male placebo 0 NA 1
vzr374f 64 female placebo 0 NA 0
hzr241n 62 male placebo 0 NA 2
lcm436i 61 female drugB 0 NA 0
hyj351j 61 male drugB 1 1,1022224 3
zji684b 58 female drugB 1 4,72435589 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!