DATA Step, Macro, Functions and more

proc genmod and output

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 79
Accepted Solution

proc genmod and output

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.

 

 

Analysis Of GEE Parameter Estimates
Empirical Standard Error EstimatesParameter   Estimate StandardError 95% Confidence Limits Z Pr > |Z|
 Intercept3.61253.6825-3.605210.83010.980.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;

 

 


Accepted Solutions
Solution
‎03-16-2018 08:42 AM
Esteemed Advisor
Posts: 5,626

Re: proc genmod and output

Posted in reply to xiangpang

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.

PG

View solution in original post


All Replies
Solution
‎03-16-2018 08:42 AM
Esteemed Advisor
Posts: 5,626

Re: proc genmod and output

Posted in reply to xiangpang

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.

PG
Frequent Contributor
Posts: 79

Re: proc genmod and output

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? 

Esteemed Advisor
Posts: 5,626

Re: proc genmod and output

Posted in reply to xiangpang

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;

PG
Frequent Contributor
Posts: 79

Re: proc genmod and output

Thanks a lot. Have a good weekend.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 147 views
  • 0 likes
  • 2 in conversation