LISTSERV mailing list manager LISTSERV 16.0

Help for R-USERS-L Archives


R-USERS-L Archives

R-USERS-L Archives


R-USERS-L@LISTS.UFL.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

R-USERS-L Home

R-USERS-L Home

R-USERS-L  2018

R-USERS-L 2018

Subject:

Re: ASReml Analysis

From:

"Paudel,Dev R" <[log in to unmask]>

Reply-To:

UF R Users List <[log in to unmask]>

Date:

Thu, 26 Apr 2018 17:56:13 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (51 lines)

Utsav,
Your model is expecting a factor. Looks like you didn't assign "Male" as a factor.
Run this before you run your model:

Citra_s17$Male <- as.factor(Citra_s17$Male)

I hope that helps.
-Dev

Dev Paudel
PhD Candidate, Agronomy Department
Room 340 Cancer/Genetics Research Complex
2033 Mowry Road |University of Florida | Gainesville, FL 32610

-----Original Message-----
From: UF R Users List <[log in to unmask]> On Behalf Of Kumar,Utsav
Sent: Thursday, April 26, 2018 1:14 PM
To: [log in to unmask]
Subject: ASReml Analysis

Hi R-Gators,


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:


library(asreml)
ainvpar<-asreml.Ainverse(ped_citra_s17)$ginv

model1<-asreml(fixed = First.Ear.Position~Rep,
                      random = ~ped(Female)+and(ped(Male))+Genotype.ID,
                      ginverse=list(Male=ainvpar,Female=ainvpar),
                      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.

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.

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

2019
2018
2017
2016
2015
2014
2013
2012
2011
2010
2009
2008

ATOM RSS1 RSS2



LISTS.UFL.EDU

CataList Email List Search Powered by the LISTSERV Email List Manager