BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am writing because I would need some advice on the following question. I am working on paternity in a monogamous bird species and I am performing analyses to check whether the probability for a male to be cuckolded (binary variable) depends on his body size, the body size of his female, the degree of genetic relatedness to his female and nest density around his own nest (all continuous variables).
Since I have data for two years (2002 and 2003), I think that the best solution is to conduct a logistic regression for repeated measures using Proc GENMOD:

proc genmod data = cuckold descending;
class maleIdentity femaleIdentity year;
model cuckoldry = maleSize femaleSize relatedness density / dist = bin link = logit;
repeated subject = maleIdentity * femaleIdentity / within=year type=unstr;
output out = genmod_fit_i p=phat;
run;

However, I am a bit worried to use my entire data set. Indeed, a few individuals changed partner between 2002 and 2003 (they divorced or became widowed). For some other pairs, I have data for one year only (the birds did not attempt to breed the other year).
Under these conditions, I am wondering what I should do. Shall I use my whole data set? Shall I use a subset including only those males for which I have data for both years (in this subset, two males changed female between 2002 and 2003, but no female changed male. If I use repeated subject = male * female, I will account for the non-independence of the pairs, but I will have twice two clusters which are not independent from each other since they will have the same male, and these four clusters will only have one year of data)? Or shall I use only the pairs for which I have two years of data (in this case, I will only have 13 clusters, vs 55 if I use the whole data set)?

Thank you in advance for your help. Message was edited by: JBHorta
1 REPLY 1
StatDave
SAS Super FREQ
Assuming that the response is recorded for each male in each year, I would think you could fit a model using all of your data with your male identifier as the SUBJECT= effect ijn the REPEATED statement. This indicates that all observations with the same value of the male identifier are correlated and observations with different values are uncorrelated. The GEE method implemented by the REPEATED allows unequal numbers of measurements among the subjects, so it is not a problem if some males are observed only once.

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 ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1159 views
  • 0 likes
  • 2 in conversation