please use R The dataset diabetic (from the survival package) contains results from a clinical trial of laser coagulation for treatment of diabetic retinopathy (the Diabetic Retinopathy Study, or DRS). Each patient had one eye randomized to laser treatment while the other eye received no treatment. The study outcome is visual acuity dropping below 5/200 for two consecutive visits. The time-to-event variable is time (in months), the censoring variable is status (0=censored, 1=visual loss). Visualize the relationship between laser treatment and visual loss using a Kaplan-Meier plot. Calculate the median survival time for each treatment group and compare. Does laser treatment appear to delay visual loss? Use a log-rank test to test the hypothesis that laser treatment affects time to visual loss. Create a variable called juvenile that is equal to 1 for patients under the age of 20, and equal to zero otherwise. Run a Cox proportional hazards model to determine if there is an interaction between juvenile diabetes and laser treatment. Does the effect of laser treatment differ for juveniles vs. adults (e., does interaction exist)?
please use R The dataset diabetic (from the survival package) contains results from a clinical trial of laser coagulation for treatment of diabetic retinopathy (the Diabetic Retinopathy Study, or DRS). Each patient had one eye randomized to laser treatment while the other eye received no treatment. The study outcome is visual acuity dropping below 5/200 for two consecutive visits. The time-to-event variable is time (in months), the censoring variable is status (0=censored, 1=visual loss). Visualize the relationship between laser treatment and visual loss using a Kaplan-Meier plot. Calculate the median survival time for each treatment group and compare. Does laser treatment appear to delay visual loss? Use a log-rank test to test the hypothesis that laser treatment affects time to visual loss. Create a variable called juvenile that is equal to 1 for patients under the age of 20, and equal to zero otherwise. Run a Cox proportional hazards model to determine if there is an interaction between juvenile diabetes and laser treatment. Does the effect of laser treatment differ for juveniles vs. adults (e., does interaction exist)?
MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
Related questions
Question
please use R
The dataset diabetic (from the survival package) contains results from a clinical trial of laser coagulation for treatment of diabetic retinopathy (the Diabetic Retinopathy Study, or DRS). Each patient had one eye randomized to laser treatment while the other eye received no treatment. The study outcome is visual acuity dropping below 5/200 for two consecutive visits. The time-to-
- Visualize the relationship between laser treatment and visual loss using a Kaplan-Meier plot.
- Calculate the
median survival time for each treatment group and compare. Does laser treatment appear to delay visual loss? - Use a log-rank test to test the hypothesis that laser treatment affects time to visual loss.
- Create a variable called juvenile that is equal to 1 for patients under the age of 20, and equal to zero otherwise. Run a Cox proportional hazards model to determine if there is an interaction between juvenile diabetes and laser treatment. Does the effect of laser treatment differ for juveniles vs. adults (e., does interaction exist)?
Expert Solution

Step 1: Write the given information
Given the dataset diabetic (from the survival package) contains results from a clinical trial of laser coagulation for the treatment of diabetic retinopathy (the Diabetic Retinopathy Study, or DRS).
Step by step
Solved in 6 steps with 14 images

Recommended textbooks for you

MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc

Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning

Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning

MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc

Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning

Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning

Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON

The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman

Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman