BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ammarhm
Lapis Lazuli | Level 10

Hi all,

I am using a proc glimmix to perform a poison regression, and using the "store" statement to store the output parameters

proc glimmix data=Poisson_sim;

class prog ;

model num_awards = prog math / dist=poisson  s cl;

store p1;

run;

Then using the following to estimate the IRR, and lower and upper CI

ods output ParameterEstimates = est;

proc plm source = p1;

  show parameters;

run;

data est_exp (drop=stderr llci luci estimate );

  set est;

  IRR = exp(estimate);

 

  llci=estimate - 1.96*stderr;

  luci=estimate + 1.96*stderr;

  UpperCI=exp (luci);

  LowerCI= exp (llci);

run;

proc print data = est_exp;

run;



The problem is: I am not managing to get the p-values from the proc Glimmix to be displayed in the output

Could anyone please advice me on how to do it?

Best wishes


1 ACCEPTED SOLUTION

Accepted Solutions
ammarhm
Lapis Lazuli | Level 10

Solved!

proc glimmix data=Poisson_sim;

class prog ;

model num_awards = prog math / dist=poisson  s cl;

ods output parameterestimates = p1;

run;

data p2;

      set p1;

      IRR = exp(estimate);

      LL = exp(lower);

      UL = exp(upper);

proc print data = p2;

      var Effect OR LL UL probt;

run;

View solution in original post

1 REPLY 1
ammarhm
Lapis Lazuli | Level 10

Solved!

proc glimmix data=Poisson_sim;

class prog ;

model num_awards = prog math / dist=poisson  s cl;

ods output parameterestimates = p1;

run;

data p2;

      set p1;

      IRR = exp(estimate);

      LL = exp(lower);

      UL = exp(upper);

proc print data = p2;

      var Effect OR LL UL probt;

run;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1518 views
  • 0 likes
  • 1 in conversation