This uses the recidivism data recid.sas7bdat. Make sure you change the value of time for the censored cases in week 52. i. Use the life table method to estimate the survival experience of the inmates...

Please refer to the two attachments.Also, no actual referencing style is needed, I selected one so I could proceed.


This uses the recidivism data recid.sas7bdat. Make sure you change the value of time for the censored cases in week 52. i. Use the life table method to estimate the survival experience of the inmates staying not arrested. Use interval width of 5 weeks and pay attention to the end point of the last interval. Show your code and the results. Based on the results, what is the probability of getting arrested in the first 15 weeks? ii. Use another PROC LifeTest step, create the plot for the hazard curve using the default KM method, and then plot hazard curve using the Life Table method. Which method will produce the smoothed hazard curve? iii. Compare the estimated hazard curve and the smoothed hazard curve. What do you find? iv. Use a PROC LifeTest step to plot the smoothed hazard curve with bandwidth of 10, then another PROC LifeTest step to plot with bandwidth of 5. What’s the difference? Which bandwidth is a better choice for this datset? v. Get the LS and LLS plots from PROC LifeTest for this data. By comparing the shape of these plots, can you decide what distribution the event time T has? Why or why not? PROC SQL; CREATE TABLE WORK.query AS SELECT week , arrest , fin , age , race , wexp , mar , paro , prio , educ , emp1 , emp2 , emp3 , emp4 , emp5 , emp6 , emp7 , emp8 , emp9 , emp10 , emp11 , emp12 , emp13 , emp14 , emp15 , emp16 , emp17 , emp18 , emp19 , emp20 FROM _TEMP0.recid; RUN; QUIT; PROC DATASETS NOLIST NODETAILS; CONTENTS DATA=WORK.query OUT=WORK.details; RUN; PROC PRINT DATA=WORK.details; RUN; 6/21/2020 Results: M3_Assignment.sas localhost:10080/SASStudio/38/sasexec/submissions/dbb479b7-aada-4037-99e6-11d4a640bcf1/results 1/2 The DATASETS Procedure Data Set Name WORK.QUERY Observations 432 Member Type DATA Variables 30 Engine V9 Indexes 0 Created 06/21/2020 09:50:17 Observation Length 240 Last Modified 06/21/2020 09:50:17 Deleted Observations 0 Protection Compressed NO Data Set Type Sorted NO Label Data Representation SOLARIS_X86_64, LINUX_X86_64, ALPHA_TRU64, LINUX_IA64 Encoding utf-8 Unicode (UTF-8) Engine/Host Dependent Information Data Set Page Size 65536 Number of Data Set Pages 2 First Data Page 1 Max Obs per Page 272 Obs in First Data Page 250 Number of Data Set Repairs 0 Filename /tmp/SAS_work8C1600007330_localhost.localdomain/SAS_work3B5E00007330_localhost.localdomain/query.sas7bdat Release Created 9.0401M6 Host Created Linux Inode Number 141577 Access Permission rw-rw-r-- Owner Name sasdemo File Size 192KB File Size (bytes) 196608 Alphabetic List of Variables and Attributes # Variable Type Len 4 age Num 8 2 arrest Num 8 10 educ Num 8 11 emp1 Num 8 12 emp2 Num 8 13 emp3 Num 8 14 emp4 Num 8 15 emp5 Num 8 16 emp6 Num 8 17 emp7 Num 8 18 emp8 Num 8 19 emp9 Num 8 20 emp10 Num 8 21 emp11 Num 8 22 emp12 Num 8 23 emp13 Num 8 24 emp14 Num 8 25 emp15 Num 8 26 emp16 Num 8 27 emp17 Num 8 28 emp18 Num 8 29 emp19 Num 8 30 emp20 Num 8 3 fin Num 8 7 mar Num 8 8 paro Num 8 9 prio Num 8 5 race Num 8 1 week Num 8 6 wexp Num 8 Obs LIBNAME MEMNAME MEMLABEL TYPEMEM NAME TYPE LENGTH VARNUM LABEL FORMAT FORMATL FORMATD INFORMAT INFORML INFORMD JUST NPOS NOBS ENGINE 1 WORK QUERY age 1 8 4 0 0 0 0 1 24 432 V9 21 2 WORK QUERY arrest 1 8 2 0 0 0 0 1 8 432 V9 21 3 WORK QUERY educ 1 8 10 0 0 0 0 1 72 432 V9 21 4 WORK QUERY emp1 1 8 11 0 0 0 0 1 80 432 V9 21 5 WORK QUERY emp2 1 8 12 0 0 0 0 1 88 432 V9 21 6 WORK QUERY emp3 1 8 13 0 0 0 0 1 96 432 V9 21 7 WORK QUERY emp4 1 8 14 0 0 0 0 1 104 432 V9 21 8 WORK QUERY emp5 1 8 15 0 0 0 0 1 112 432 V9 21 9 WORK QUERY emp6 1 8 16 0 0 0 0 1 120 432 V9 21 10 WORK QUERY emp7 1 8 17 0 0 0 0 1 128 432 V9 21 11 WORK QUERY emp8 1 8 18 0 0 0 0 1 136 432 V9 21 12 WORK QUERY emp9 1 8 19 0 0 0 0 1 144 432 V9 21 6/21/2020 Results: M3_Assignment.sas localhost:10080/SASStudio/38/sasexec/submissions/dbb479b7-aada-4037-99e6-11d4a640bcf1/results 2/2 Obs LIBNAME MEMNAME MEMLABEL TYPEMEM NAME TYPE LENGTH VARNUM LABEL FORMAT FORMATL FORMATD INFORMAT INFORML INFORMD JUST NPOS NOBS ENGINE 13 WORK QUERY emp10 1 8 20 0 0 0 0 1 152 432 V9 21 14 WORK QUERY emp11 1 8 21 0 0 0 0 1 160 432 V9 21 15 WORK QUERY emp12 1 8 22 0 0 0 0 1 168 432 V9 21 16 WORK QUERY emp13 1 8 23 0 0 0 0 1 176 432 V9 21 17 WORK QUERY emp14 1 8 24 0 0 0 0 1 184 432 V9 21 18 WORK QUERY emp15 1 8 25 0 0 0 0 1 192 432 V9 21 19 WORK QUERY emp16 1 8 26 0 0 0 0 1 200 432 V9 21 20 WORK QUERY emp17 1 8 27 0 0 0 0 1 208 432 V9 21 21 WORK QUERY emp18 1 8 28 0 0 0 0 1 216 432 V9 21 22 WORK QUERY emp19 1 8 29 0 0 0 0 1 224 432 V9 21 23 WORK QUERY emp20 1 8 30 0 0 0 0 1 232 432 V9 21 24 WORK QUERY fin 1 8 3 0 0 0 0 1 16 432 V9 21 25 WORK QUERY mar 1 8 7 0 0 0 0 1 48 432 V9 21 26 WORK QUERY paro 1 8 8 0 0 0 0 1 56 432 V9 21 27 WORK QUERY prio 1 8 9 0 0 0 0 1 64 432 V9 21 28 WORK QUERY race 1 8 5 0 0 0 0 1 32 432 V9 21 29 WORK QUERY week 1 8 1 0 0 0 0 1 0 432 V9 21 30 WORK QUERY wexp 1 8 6 0 0 0 0 1 40 432 V9 21 6/21/2020 Results: WORK.QUERY localhost:10080/SASStudio/38/sasexec/submissions/4e3550ce-0ebb-4cf1-9ddc-3c6efa7e1275/results 1/6 Obs week arrest fin age race wexp mar paro prio educ emp1 emp2 emp3 emp4 emp5 emp6 em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 0 0 0 0 0 0 0 0 0 0 1 1 1 19 52 0 0 25 1 0 0 1 12 3 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 20 52 0 0 24 0 1 0 1 1 3 0 1 1 0 0 0 0 0 1 1 1 1 1 1 0 0 0 21 52 0 0 23 1 0 0 1 4 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 22 52 0 1 44 1 1 1 1 0 3 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 23 24 1 1 29 1 1 0 1 2 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 24 52 0 1 28 0 1 0 1 1 3 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1
Jun 20, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here