This script analyzes the cosmetic effects of two breast cancer treatments (Radiotherapy 'RT' vs Radio-chemotherapy 'RCT'). It creates the data via DATA steps, then uses the ICLIFETEST procedure to estimate survival functions, perform comparisons between groups (strata), and generate survival plots with confidence intervals. The 'impute' option is used to handle interval censoring via multiple imputation.
Data Analysis
Type : INTERNAL_CREATION
Data is created directly in the script via the DATALINES statement. Two tables (RT and RCT) are created then concatenated into the final BCS table.
1 Code Block
DATA STEP Data
Explanation : Creation of raw datasets for each treatment group. The 'input lTime rTime @code_sas_json/8_SAS_Intro_ReadFile_MultiCol_@@.json;' statement (corrected from the prompt's artifact) allows reading multiple pairs of observations on the same line. The two tables are then stacked into the 'BCS' table.
Explanation : First survival analysis. The 'plots=survival(cl)' option requests plotting the survival curve with confidence limits. 'impute(seed=1234)' activates imputation for interval-censored data with a fixed random seed for reproducibility. 'strata trt' defines the group variable.
Explanation : Second analysis similar to the first, but the graphic option 'nodash' is added so that confidence curves are plotted with solid lines rather than dashed lines.
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
Copyright Info : SAS SAMPLE LIBRARY, NAME: ICLFTEX2, PRODUCT: STAT
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.