logo Hurry, Grab up to 30% discount on the entire course
Order Now logo
534 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
StatAnalytica ExpertCriminology
(5/5)

637 Answers

Hire Me
expert
Clifford BillmanBusiness
(5/5)

690 Answers

Hire Me
expert
Charu SinghalStatistics
(/5)

533 Answers

Hire Me
expert
Pierre BernierData mining
(5/5)

774 Answers

Hire Me
SAS
(5/5)

What do you think the percent of censoring should be? Show your calculation or reasoning.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Simulate a survival data with the following specifications:

-        Event time T follows an exponential distribution with a mean of 40

-        Censoring time Tc follows an exponential distribution with a mean of 25

-        Generate 500 observations, with censoring flag indicating whether censoring happened before events.

i.      From your simulated data, what’s the percent of censoring? 

ii.     What do you think the percent of censoring should be?  Show your calculation or reasoning.

iii.    Consider the censored survival time in the variable ‘time’.  What’s the median survival time?  What’s the mean survival time? Paste your SAS code below, keeping the editing style (color, font, etc).Use the sample code to complete the part that is attached:

data survData;
lambdat = 0.02; *baseline hazard;
lambdac = 0.04; *censoring hazard;
do i = 1 to 100;
t = RANEXP(12345)/lambdat; * time of event;
c = RANEXP(67890)/lambdac; * time of censoring;
time = min(t, c); * which happens first?;
censored = (c < t); * censored when the censoring hapapened before event;
output;
end;
drop i lambda:;

run;
proc freq data=SurvData;
tables censored ;
run;
proc univariate data=survData;
histogram T C;
run;

data survData;

  lambdat = 0.02; *baseline hazard;

  lambdac = 0.04; *censoring hazard;

  do i = 1 to 100;

    t = RANEXP(12345)/lambdat;    * time of event;

    c = RANEXP(67890)/lambdac;    * time of censoring;

    time = min(t, c);    * which happens first?;

    censored = (c < t);  * censored when the censoring hapapened before event;

    output;

  end;

  drop i lambda:;

 

run;

proc freq data=SurvData;

tables censored ;

run;

proc univariate data=survData;

histogram T C;

run;

(5/5)
Attachments:

Expert's Answer

534 Times Downloaded

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme