/* example.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 * * * *********************************************************************; ********************************************************************** * * * example.dat * * Example data for use in path coefficient analysis * * * *********************************************************************; ********************************************************************** * * * 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 'orig.dat' ; /* 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 'YC and PD study'; title2 'Sp & Sm, 1995'; 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 "." * * * *********************************************************************; data abc; infile in missover pad; /* MISSOVER & PAD are options on INFILE */ input density $ popn $ cyn branplan nodebran perfenod frtset frtplant markplan earplan; 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=abc, indep=branplan nodebran perfenod frtset, dep0=frtplant, dep=markplan earplan, bylist=density popn cyn, printreg=no, printout=yes, corrind=no, corrdep=no, boot=no, random=4578091, samples=1000 ); YC and PD study 1 Sp & Sm, 1995 Direct Effects, Indirect Effects and Total Correlations B N P F M D R O E R A E E _ A D R F T R A N N N E F R P K R S P A P B E T N L P P O I O C M L R N S O A L L B T P Y E A A O E B N A A S Y N N _ N N D T S T N N 1 HIGH 1NCWBP 0 BRANPLAN 1.44 -0.04 -0.58 -0.25 8 0.57 0.52 0.40 2 HIGH 1NCWBP 0 NODEBRAN -0.93 0.06 0.10 0.15 8 -0.62 -0.56-0.43 3 HIGH 1NCWBP 0 PERFENOD -0.95 0.01 0.88 0.24 8 0.17 0.16 0.12 4 HIGH 1NCWBP 0 FRTSET 1.21 -0.03 -0.71 -0.30 8 0.17 0.16 0.12 5 HIGH 1NCWBP 3 BRANPLAN 0.80 -0.30 -0.02 -0.18 7 0.29 0.16 0.18 6 HIGH 1NCWBP 3 NODEBRAN -0.35 0.70 -0.09 -0.03 7 0.22 0.12 0.14 7 HIGH 1NCWBP 3 PERFENOD -0.03 -0.12 0.53 -0.02 7 0.36 0.19 0.22 8 HIGH 1NCWBP 3 FRTSET -0.26 -0.04 -0.02 0.56 7 0.25 0.13 0.15 9 HIGH 1NCWBP 5 BRANPLAN -0.25 -0.13 -0.03 0.47 7 0.06 0.06 0.05 10 HIGH 1NCWBP 5 NODEBRAN 0.03 0.96 -0.15 -0.32 7 0.53 0.51 0.49 11 HIGH 1NCWBP 5 PERFENOD 0.01 -0.25 0.57 0.25 7 0.59 0.57 0.55 12 HIGH 1NCWBP 5 FRTSET -0.19 -0.51 0.24 0.60 7 0.14 0.13 0.13 13 HIGH 2NCMBP 0 BRANPLAN 0.37 0.06 -0.09 0.30 7 0.64 0.56 0.55 14 HIGH 2NCMBP 0 NODEBRAN -0.21 -0.10 -0.21 -0.32 7 -0.85 -0.74-0.73 15 HIGH 2NCMBP 0 PERFENOD -0.09 0.06 0.36 0.13 7 0.45 0.40 0.39 16 HIGH 2NCMBP 0 FRTSET 0.20 0.06 0.08 0.56 7 0.90 0.79 0.77 17 HIGH 2NCMBP 5 BRANPLAN 0.21 0.01 -0.13 -0.12 8 -0.03 -0.01-0.01 18 HIGH 2NCMBP 5 NODEBRAN 0.01 0.17 -0.34 -0.08 8 -0.24 -0.11-0.10 19 HIGH 2NCMBP 5 PERFENOD -0.04 -0.08 0.75 0.29 8 0.93 0.44 0.40 20 HIGH 2NCMBP 5 FRTSET -0.06 -0.04 0.53 0.41 8 0.85 0.40 0.36 21 HIGH 2NCMBP 9 BRANPLAN -0.40 -0.12 -0.75 1.80 7 0.53 0.52 0.51 22 HIGH 2NCMBP 9 NODEBRAN 0.28 0.17 0.64 -1.18 7 -0.09 -0.09-0.09 23 HIGH 2NCMBP 9 PERFENOD 0.31 0.11 0.97 -1.48 7 -0.08 -0.08-0.08 24 HIGH 2NCMBP 9 FRTSET -0.39 -0.11 -0.76 1.87 7 0.62 0.60 0.60 25 LOW 1NCWBP 0 BRANPLAN -0.69 -0.03 0.26 -0.23 8 -0.69 -0.49 0.01 26 LOW 1NCWBP 0 NODEBRAN 0.53 0.03 -0.22 0.18 8 0.53 0.37-0.01 27 LOW 1NCWBP 0 PERFENOD 0.58 0.02 -0.31 0.33 8 0.62 0.44-0.01 28 LOW 1NCWBP 0 FRTSET -0.35 -0.01 0.22 -0.45 8 -0.60 -0.42 0.01 29 LOW 1NCWBP 3 BRANPLAN -0.10 0.07 -0.30 -0.30 7 -0.63 -0.59-0.58 30 LOW 1NCWBP 3 NODEBRAN 0.07 -0.10 0.07 0.66 7 0.70 0.66 0.65 31 LOW 1NCWBP 3 PERFENOD 0.06 -0.02 0.48 -0.02 7 0.50 0.47 0.46 32 LOW 1NCWBP 3 FRTSET 0.03 -0.07 -0.01 0.88 7 0.82 0.78 0.76 33 LOW 1NCWBP 5 BRANPLAN -5.39 1.12 3.69 0.22 5 -0.36 -0.35-0.04 34 LOW 1NCWBP 5 NODEBRAN 3.80 -1.59 -0.45 -1.20 5 0.57 0.55 0.06 35 LOW 1NCWBP 5 PERFENOD 3.79 -0.14 -5.25 1.27 5 -0.32 -0.31-0.03 36 LOW 1NCWBP 5 FRTSET 0.58 -0.93 3.25 -2.05 5 0.85 0.83 0.09 37 LOW 2NCMBP 0 BRANPLAN 0.16 -0.11 -0.15 0.04 8 -0.06 -0.05-0.05 38 LOW 2NCMBP 0 NODEBRAN -0.11 0.16 0.17 0.21 8 0.43 0.41 0.34 39 LOW 2NCMBP 0 PERFENOD -0.10 0.11 0.25 0.51 8 0.77 0.74 0.61 40 LOW 2NCMBP 0 FRTSET 0.01 0.04 0.17 0.75 8 0.97 0.93 0.77 41 LOW 2NCMBP 5 BRANPLAN 0.72 -0.79 0.09 -0.27 8 -0.25 -0.23-0.09 YC and PD study 2 Sp & Sm, 1995 Direct Effects, Indirect Effects and Total Correlations B N P F M D R O E R A E E _ A D R F T R A N N N E F R P K R S P A P B E T N L P P O I O C M L R N S O A L L B T P Y E A A O E B N A A S Y N N _ N N D T S T N N 42 LOW 2NCMBP 5 NODEBRAN -0.62 0.91 0.05 0.23 8 0.57 0.53 0.20 43 LOW 2NCMBP 5 PERFENOD 0.13 0.09 0.49 -0.09 8 0.62 0.58 0.22 44 LOW 2NCMBP 5 FRTSET -0.33 0.36 -0.07 0.58 8 0.54 0.50 0.19 45 LOW 2NCMBP 9 BRANPLAN 0.91 -0.09 -0.93 0.14 6 0.03 0.02 0.02 46 LOW 2NCMBP 9 NODEBRAN -0.30 0.27 0.76 -0.18 6 0.53 0.52 0.47 47 LOW 2NCMBP 9 PERFENOD -0.73 0.17 1.16 -0.16 6 0.45 0.44 0.40 48 LOW 2NCMBP 9 FRTSET 0.21 -0.08 -0.30 0.62 6 0.45 0.44 0.40