hello,
I am trying to do proc genmod. But I want only "Analysis Of Parameter Estimates" result, not other results such as Residues, Resraw, Reschi, Resdev, Stdreschi, Stdresdev,Reslik .
something like the following table. Anyone knows how to get it? thanks a lot.
Intercept | 3.6125 | 3.6825 | -3.6052 | 10.8301 | 0.98 | 0.3266 |
data ingots;
input Heat Soak Notready Total @@;
lnTotal= log(Total);
datalines;
7 1.0 0 10 14 1.0 0 31 27 1.0 1 56 51 1.0 3 13
7 1.7 0 17 14 1.7 0 43 27 1.7 4 44 51 1.7 0 1
7 2.2 0 7 14 2.2 2 33 27 2.2 0 21 51 2.2 0 1
7 2.8 0 12 14 2.8 0 31 27 2.8 1 22 51 4.0 0 1
7 4.0 0 9 14 4.0 0 19 27 4.0 1 16
;
proc genmod data=ingots;
class Heat Soak / param=ref;
model Notready=Heat Soak / offset=lnTotal dist=Poisson link=log;
exact Heat Soak / joint estimate;
exactoptions statustime=10;
run;
Pick the table from the list of ODS tables for proc genmod. You seem to want table GEEEmpPEst , so add the statement
ODS select GEEEmpPEst ;
to your proc code.
Pick the table from the list of ODS tables for proc genmod. You seem to want table GEEEmpPEst , so add the statement
ODS select GEEEmpPEst ;
to your proc code.
Thanks for your reply. I have two more questions. Do you know what is the difference between "ParameterEstimates" and "GEEEmpPEst ". The output results are different.
Another question, if I have several output result from the genmod analysis with same file name and same variables, what is the best way to add them into one table?
I don't do GEEs.
Give your output tables different meaningful names, and then concatenate them all with
data allTables;
set TableA TableB ... indsname=dsn;
tableName = scan(dsn, 2);
run;
Thanks a lot. Have a good weekend.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.