/* startup.txt */; ********************************************************************** * * * PATHSAS 1.0 * * Program for Analysis of Path Coefficients Using SAS * * C.S. Cramer, T.C. Wehner and S.B. Donaghy * * November 18, 1997 * * * ********************************************************************** ********************************************************************** * * * startup.sas * * program for running PATHSAS macros * * * *********************************************************************; ********************************************************************** * * * Specify file names and include macros. * * * * 1. Specify the name of the file where the data is stored. * * The name is enclosed in quotes. * * example: filename in 'orig.dat' ; * * * * 2. Include the macros with the %INCLUDE (%inc) statement. * * Specify the physical name of the external file where the macro * * is stored. The physical name is enclosed in quotes. * * example: %inc 'pathsas.sas'; * * %inc 'jackboot.sas'; * * * * Summary: * * The user only needs to change the information inside the * * quotes on the FILENAME and %INCLUDE statements below. * * The information inside the quotes specifies the name of the * * external file where the data or macros are stored. It may be * * necessary to specify the entire file name inside the quotes. * * example: %inc 'c:\sasmacro\pathsas.sas'; * * * *********************************************************************; filename in ' ' ; /* name and location of data file */ %inc 'pathsas.sas'; /* name and location of SAS macro PATHSAS */ %inc 'jackboot.sas'; /* name and location of SAS macro JACKBOOT */ ********************************************************************** * * * Include any desired titles and options * * * *********************************************************************; title1 ' '; title2 ' '; options linesize=78 ps=54 pageno=1 nodate; ********************************************************************** * * * Create SAS dataset * * The user will need to modify the INPUT statement to specify * * the variable names from their experiment. If list input is * * used, then missing values should be coded with a "." * * * * if data is to be placed in the startup.sas file then remove * * infile statment and place cards statement prior to data. * * * *********************************************************************; data ; infile in missover pad; /* MISSOVER & PAD are options on INFILE */ input ; run; ********************************************************************** * * * Invoke the PATHSAS macro. * * Modify the following parameters for your experiment: * * DATA - name of SAS dataset to analyse * * INDEP - list of independent variable names * * DEP0 - primary dependent variable name * * - for total correlation * * DEP - secondary dependent variables names * * - for total correlation * * BYLIST - by variable names * * PRINTREG- print regression? (value is either yes or no) * * PRINTOUT- print results(direct,indirect effects)? * * (value is either yes or no) * * CORRIND - print correlation coefficient for independent * * variables? (value is either yes or no) * * CORRDEP - print correlation coefficient * * for dependent variables? * * (value is either yes or no) * * BOOT - compute bootstrap confidence intervals * * for total correlation * * variables? (value is either yes or no) * * RANDOM - random seed for bootstrap macro * * default seed is 1234501 * * SAMPLES - number of resamples to calculate * * for bootstrap macro * * default should be at least 1000 * * for 90% confidence and greater * * than 1000 for higher confidence value * * or if BC method is specified. * * * *********************************************************************; %pathsas(data= , indep= , dep0= , dep= , bylist= , printreg=no, printout=yes, corrind=no, corrdep=no, boot=no, random=4578091, samples=1000 );