/* History:
2025-10-30 Include source_v143.sas for alternative IML v14.3 code.
2025-12-08 Check for existence of the SYSINCLUDEFILEDIR macro variable.
*/

/*
Loads all NCI method macros
*/

** Check if sysincludefiledir exists;
%macro check_sysincludefiledir;
	%if not %symexist(sysincludefiledir) %then %do;
		%put ERROR: The SYSINCLUDEFILEDIR macro variable does not exist;
		%put ERROR: Set SYSINCLUDEFILEDIR to the path containing ncimultivar.sas at the top of your SAS program;
		data _NULL_; abort cancel; run;
	%end;
%mend check_sysincludefiledir;
%check_sysincludefiledir;

%include "&sysincludefiledir./boxcox_survey.sas";
%include "&sysincludefiledir./nci_multivar_preprocessor.sas";
%include "&sysincludefiledir./nci_multivar_mcmc.sas";
%include "&sysincludefiledir./nci_multivar_distrib.sas";
%include "&sysincludefiledir./nci_multivar_summary.sas";
%include "&sysincludefiledir./replicate_weights.sas";
%include "&sysincludefiledir./nhanes_utilities.sas";
%include "&sysincludefiledir./mcmc_parameters.sas";
%include "&sysincludefiledir./mcmc_covariate_test.sas";
%include "&sysincludefiledir./mcmc_trace_plots.sas";
%include "&sysincludefiledir./mcmc_gelman_rubin.sas";
%include "&sysincludefiledir./source_v143.sas";
%include "&sysincludefiledir./internal/source_categorical_covars.sas";
%include "&sysincludefiledir./internal/source_interactions.sas";
