BookmarkSubscribeRSS Feed
r1231
Calcite | Level 5

In a paper on reintroduced cranes, I have data like this: ID, Sex, Year, Dispersal* (e.g., 1-01, M, 2002, 1)

I want to show that females disperse more than males.

I used chi-square. Reviewer indicated this violated assumption of independence because of multiple years of data for same birds and that I should use GLIMMIX.

What are lines of code needed to set up model?

SAS version 9.x (latest)

*Dispersal: 1 = in reintroduction area; 0 = out (dispersed).

 

Thanks, Richard

3 REPLIES 3
Ksharp
Super User
Or proc mixed. make ID as Subject variable, Year as a random effect. You should call @Steve or @lvm
r1231
Calcite | Level 5

id = identification code for each bird.

out = dispersal value (=1 if out of reintro. area); each bird has data in 1 or more years (observations).

This code:

proc glimmix;

title 'difference in dispersal by sex including all birds';

class sex id;

model out = sex / link=logit dist=binomial;

random int / subject=id;

run;

 

Produces these results: Type III Tests of Fixe Effects:
Effect = Sex, Num DF = 1, Den DF = 568, F Value = 5.26, Pr > F = 0.0221

Does this look correct? Thank you.

Ksharp
Super User
Sorry. I am not expert about proc glimmix.
You should post it at Statistical Forum. 
@Steve @lvm ...   are there .


SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 3 replies
  • 732 views
  • 0 likes
  • 2 in conversation