libname pss 'C:\Users\rjd48\Desktop\PSS weighted analysis'; %include 'C:\Users\rjd48\Desktop\PSS weighted analysis\PSS weighted analysis.sas'; ** the stratification and analysis macro- %fine_stratification; %include 'C:\Users\rjd48\Desktop\PSS weighted analysis\Weighted Table 1s.sas'; ** macro for creating patient characteristic tables- %table1 NOTE- this macro is invoked by calling the %fine_stratification macro ; options mprint mlogic; ** binary outcome example; /* %fine_stratification (in_data= pss.ps_fs_binary_example, exposure= treatment, PS_provided= no , ps_var= ps, ps_class_var_list= c1-c9 , ps_cont_var_list= c10, PSS_method=cohort, n_of_strata= 20, out_data= PS_FS, id_var= obs, effect_estimate= rr, outcome= outcome, survival_time= , out_excel= C:\Users\rjd48\Desktop\PSS weighted analysis\example_results, ps_dist_plots= yes, ps_dist_figure= C:\Users\rjd48\Desktop\PSS weighted analysis\example_ps_dist); */ ** time to event outcome example; %fine_stratification (in_data= pss.ps_fs_survival_example, exposure= treatment, PS_provided= no , ps_var= ps, ps_class_var_list= c7-c10 c1 c3-c5 , ps_cont_var_list= c9 c2, PSS_method=exposure, n_of_strata= 50, out_data= PS_FS, id_var= id, effect_estimate= hr, outcome= outcome, survival_time= survt, out_excel= C:\Users\rjd48\Desktop\PSS weighted analysis\example_results, ps_dist_plots= yes, ps_dist_figure= C:\Users\rjd48\Desktop\PSS weighted analysis\example_ps_dist);