Programming the statistical procedures from SAS

proc mixed

Reply
Regular Learner
Posts: 1

proc mixed

Hi, I have a dataset including records on sperm volume in cow. The fixed effect is age and random effect is cow_id. I used breed proportion and preed heterosis as covariates in the model. Since it is animal model, I included numerator relationship matrix (A matrix) in the model.

1)proc mixed data = combined;
class age cow_id;
model volume = age breedproportion  breedheterosis/solution;
random intercept/subject=bull_id typ=lin(1) ldata=g solution;
run;

 

2)proc mixed data = combined;
class age cow_id; 
model volume = age breedproportion  breedheterosis/solution; 
random bull_id;
run;

I did run  both models, but the results are identical, which means ldata does not consider in first model. 

What should I do?

Ask a Question
Discussion stats
  • 0 replies
  • 171 views
  • 0 likes
  • 1 in conversation