Hi,
I am trying to use ASreml-R to estimate the covariance between additive and maternal genetic variances for birth weight. The model runs fine without trying to specify the covariance, coded as:
model4<-asreml(fixed= wt ~ 1, random = ~ped(animal, var=T) + ped(mother, var=T) + ide(mother, var=T), ginverse=list(animal=Dped, mother=Dped), data=juvtraits)
However, I can't get the model to run linking animal and mother together. I have tried specifying this model as both:
model5<-asreml(fixed= wt ~ 1, random = ~ us(link(ped(animal, var=T))):ped(mother, var=T) + ide(mother, var=T), ginverse=list(animal=Dped, mother=Dped), data=juvtraits)
model6<-asreml(fixed= wt ~ 1, random = ~ us(link(~ped(animal, var=T))):ped(mother, var=T) + ide(mother, var=T), ginverse=list(animal=Dped, mother=Dped), data=juvtraits)
neither of which will run. The first attempt give an error message "Error in switch(mode(x), "NULL" = structure(NULL, class = "formula"), : invalid formula". The second seems to make more of an attempt to run (it takes longer to return an error message), but then fails and gives "Error in data[[obj]] : object is not subsettable".
Has anyone tried to do this before? Am I doing something obviously wrong? Is it possible to fit these covariances in ASreml-R, given that the information in the manual is very limited?
Many thanks for any help you can offer
Craig
-------------------- m2f --------------------
Sent using Mail2Forum (http://www.mail2forum.com).
Read this topic online here:
http://www.vsni.co.uk/forum/viewtopic.php?p=487#487
-------------------- m2f --------------------
Received on Thu Apr 15 2009 - 12:23:31 EST
This webpage is part of the ASReml-l discussion list archives 2004-2010. More information on ASReml can be found at the VSN website. This discussion list is now deprecated - please use the VSN forum for discussion on ASReml. (These online archives were generated using the hypermail package.)