figtitle=%quote(&aggregated.&titlestart. Kaplan-Meier Estimate&cititle. of &outcomelabel. Not Occurring Among &AnalysisGroupLabel.&dpinparenthesis. from the &pop.&PSEstimateGroupLabelT. in the &database. from &startdateformatted. to &&enddate&j.formatted.&subgrouptitle.),
****************************************************************************************************
****************************************************************************************************
* PROGRAM: figure_survivalcurves_output.sas
* Created (mm/dd/yyyy): 07/28/2021
*--------------------------------------------------------------------------------------------------
* PURPOSE: This macro includes a proc sgplot to produce Kaplan-Meier, Cumulative Distribution
* Function (CDF), and Cumulative Incidence Function (CIF) curves with an at-risk table
* - Dataset(s) computed in figure_survivalcurves_createdata.sas (L1 plots) or
* l2_effect_estimate_km_createdata.sas (L2 plots)
* - Dataset(s) to output/repdata for each figure
* Utility macro %output_survivalcurves created to execute proc sgplot for each km/cdf plot
*--------------------------------------------------------------------------------------------------
* Sentinel Coordinating Center
* info@sentinelsystem.org
***************************************************************************************************;
%macro figure_survivalcurves_output();
%put =====> MACRO CALLED: figure_survivalcurves_output;
%macro output_survivalcurves(dataset=,
/* Obtain x and y axis values */
set figurefile(where=(figure="&figure."));
call symputx('atrisktable', includeatrisktable);