Help using Base SAS procedures

Glimmix or Mixed

Reply
Occasional Contributor
Posts: 12

Glimmix or Mixed

Hi, I'm using glimmix but my questin is applicable to mixed too.
I'm trying to analyse animal behavioural data. I have tha data entered as binomial by animal but the fact is animals affects others behavior so I have to analyse by separated groups of animals.
How I tell SAS to use a group of animals (REP variable) as a sample unit instead of an individual animal?
Thanks
Trusted Advisor
Posts: 2,116

Re: Glimmix or Mixed

Rather than attempting to make the herd the unit of measure and treating each animal as a repeat, the more traditional way of approaching the problem is to use the animal as the unit of measurement and specify the herd as a random effect.
Occasional Contributor
Posts: 12

Re: Glimmix or Mixed

Thanks Doc, for your quick answer. So, you say with this approach you solve the no-independence issue that exist inside each herd? I think there's no a herd effect but an individual effect...Thanks again
Trusted Advisor
Posts: 2,116

Re: Glimmix or Mixed

See the example at the beginning of the MIXED documentation in 9.2. It uses family as a random effect.
Occasional Contributor
Posts: 12

Re: Glimmix or Mixed

Ok, thanks

Ask a Question
Discussion stats
  • 4 replies
  • 163 views
  • 0 likes
  • 2 in conversation