1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
72
73 /* product.sas */
74 title "Test H0: beta1 * beta2 = 0 on the SAT data";
75
76
77 data PennState;
78 infile '/folders/myfolders/441s18/Lecture/openSAT.data.txt' firstobs=2;
79 input id verbal math gpa; /* Skipping the header */
80
NOTE: The infile '/folders/myfolders/441s18/Lecture/openSAT.data.txt' is:
Filename=/folders/myfolders/441s18/Lecture/openSAT.data.txt,
Owner Name=root,Group Name=vboxsf,
Access Permission=-rwxrwx---,
Last Modified=06Jan2017:09:41:47,
File Size (bytes)=3618
NOTE: 200 records were read from the infile '/folders/myfolders/441s18/Lecture/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.00 seconds
cpu time 0.00 seconds
81 proc reg plots=none;
82 title2 'Proc reg to get starting values';
83 model gpa = verbal math;
84
NOTE: PROCEDURE REG used (Total process time):
real time 0.09 seconds
cpu time 0.07 seconds
85 proc nlmixed ;
86 title2 "Testing H0: beta1 beta2 = 0";
87 parms beta0 = 0.60807 beta1 = 0.00231 beta2 = 0.00099736 sigmasq = 0.30069;
88 L = beta0 + beta1*verbal + beta2*math;
89 model gpa ~ normal(L,sigmasq);
90 contrast 'Product' beta1*beta2;
91 run;
NOTE: Convergence criterion (GCONV=1E-8) satisfied.
NOTE: At least one element of the gradient is greater than 1e-3.
NOTE: PROCEDURE NLMIXED used (Total process time):
real time 0.10 seconds
cpu time 0.08 seconds
92
93
94
95
96
97
98 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
111