## Proc GLIMMIX - binomial data

Solved
Occasional Contributor
Posts: 19

# Proc GLIMMIX - binomial data

I am currently analysing some data as binomial data in the Proc Glimmix using the event/trial syntax. Everything is fine so far, but I do not understand how to interpret the lsmeans. This is important since I have to construct some graphs which should correspond to the statistics. I would prefer percentage data in the graphs but I think this does not correspond to the statistics from the model.

Accepted Solutions
Solution
‎09-25-2015 06:23 AM
PROC Star
Posts: 275

## Re: Proc GLIMMIX - binomial data

Check out the ilink option on the LSMEANS statement

http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glimmix_sect...

In addition to estimates on the model (i.e., link) scale, which for the binomial distribution is the logit, you will also get estimates on the inverse-linked scale, which for the binomial distribution is the proportion. Beats back-transforming by hand!

HTH,

Susan

All Replies
Solution
‎09-25-2015 06:23 AM
PROC Star
Posts: 275

## Re: Proc GLIMMIX - binomial data

Check out the ilink option on the LSMEANS statement

http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glimmix_sect...

In addition to estimates on the model (i.e., link) scale, which for the binomial distribution is the logit, you will also get estimates on the inverse-linked scale, which for the binomial distribution is the proportion. Beats back-transforming by hand!

HTH,

Susan

Occasional Contributor
Posts: 19

## Re: Proc GLIMMIX - binomial data

Thank you very much. I've tried the ilink statement before but did not realize that there was an additional column in the table with the lsmeans in the scale of the raw data...

Occasional Contributor
Posts: 16

## Re: Proc GLIMMIX - binomial data

My experiment arranged in Split Plot design. How to make a Charts/ Boxplots for Proportions of a Binary Variable ?

data Survival;

input A \$ B \$ Block Y;  if Y=1 then 1='Survive'; else 0='Died';

datalines;

A1     B1     1      0

A1     B1     2      1

A1     B1     3      0

A1     B1     4      0

A1     B1     5      0

A1     B2     1      1

A1     B2     2      1

A1     B2     3      1

A1     B2     4      1

A1     B2     5      0

A1     B3     1      1

A1     B3     2      0

A1     B3     3      0

A1     B3     4      1

A1     B3     5      1

A2     B1     1      0

A2     B1     2      0

A2     B1     3      0

A2     B1     4      0

A2     B1     5      0

A2     B2     1      1

A2     B2     2      0

A2     B2     3      0

A2     B2     4      1

A2     B2     5      0

A2     B3     1      1

A2     B3     2      1

A2     B3     3      1

A2     B3     4      0

A2     B3     5      1

A3     B1     1      1

A3     B1     2      0

A3     B1     3      1

A3     B1     4      0

A3     B1     5      0

A3     B2     1      0

A3     B2     2      1

A3     B2     3      1

A3     B2     4      1

A3     B2     5      0

A3     B3     1      0

A3     B3     2      1

A3     B3     3      0

A3     B3     4      1

A3     B3     5      1

;

Is it true when it displayed in as shown below ? how to write the codes

Please help me it is so important for me...

🔒 This topic is solved and locked.

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

Discussion stats
• 3 replies
• 392 views
• 1 like
• 3 in conversation