I'm trying to estimate heratibility by including pedigree. I did the same analysis w/o pedigree and it was working well but after adding pedigree when i do same analysis. I get this error:
Error in asreml.ped(Male, data = data, Rcov = 0) :
Argument to ped() must be a factor)
And i have used below code:
model1<-asreml(fixed = First.Ear.Position~Rep,
random = ~ped(Female)+and(ped(Male))+Genotype.ID,
data = Citra_s17, na.method.X = "include")
Can anyone please tell me where am i going wrong or what does this error mean?
Thanks in advance.
This list strives to be beginner friendly. However, we still ask that you
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.