1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
NOTE: ODS statements in the SAS Studio environment may disable some output features.
56
57 /**************************** SATcalisReg.sas ****************************/
58 title 'Open SAT Data: Fit a regression model with proc calis';
59 title2 'Jerry Brunner: Student Number 999999999';
60
61 data PennState;
62 infile '/folders/myfolders/431s17/openSAT.data.txt' firstobs=2;
63 input id verbal math gpa; /* Skipping the header */
64
65 ods graphics off; /* Suppress regression plots */
NOTE: The infile '/folders/myfolders/431s17/openSAT.data.txt' is:
Filename=/folders/myfolders/431s17/openSAT.data.txt,
Owner Name=root,Group Name=vboxsf,
Access Permission=-rwxrwx---,
Last Modified=06Jan2017:08:41:47,
File Size (bytes)=3618
NOTE: 200 records were read from the infile '/folders/myfolders/431s17/openSAT.data.txt'.
The minimum record length was 16.
The maximum record length was 16.
NOTE: The data set WORK.PENNSTATE has 200 observations and 4 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.02 seconds
66 proc reg;
67 title3 'Proc reg for comparison';
68 model gpa = verbal math;
69
NOTE: PROCEDURE REG used (Total process time):
real time 0.07 seconds
cpu time 0.06 seconds
70 proc calis vardef=n nostand; /* Use n in the denominator for pure MLEs
71 Suppress standardized output */
72 title3 'Surface regression with proc calis';
73 var verbal math gpa; /* Declare observed variables */
74 lineqs /* Give model equation(s) */
75 gpa = beta0*Intercept + beta1*verbal + beta2*math + epsilon;
76 variance /* Declare variance parameters */
77 verbal = phi11,
78 math = phi22,
79 epsilon = sigmasq;
80 cov /* Declare non-zero covariance parameters */
81 verbal math = phi12;
82 mean /* Declare non-zero mean parameters */
83 verbal = mu1, math = mu2;
84 run;
NOTE: Convergence criterion (GCONV2=0) satisfied.
NOTE: PROCEDURE CALIS used (Total process time):
real time 0.25 seconds
cpu time 0.21 seconds
85 /* The final run statement is not strictly necessary in SAS Studio. */
86
87
88 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
100