Message-ID: <BANLkTikiYXHO767H+e5+i75qq7wayD0iAw@mail.gmail.com>
Date: 2011-04-08T16:11:01Z
From: Steve Lianoglou
Subject: lars - lasso problem
In-Reply-To: <BANLkTikYBk+ezB8g5xf0nzEz3WUWUKhYmw@mail.gmail.com>
Hi,
On Fri, Apr 8, 2011 at 10:33 AM, gauri j <gauri.jape7 at gmail.com> wrote:
> hi,
> I have problem in following code, error is occurred. I have attached my data
> herewith. and my code is as following,
>> library(lars)
> Loaded lars 0.9-8
> Warning message:
> package 'lars' was built under R version 2.12.2
>> x<- read.table("D:/spring '11/james reggression/NewFeature.txt")
>> y<-read.table("D:/spring '11/lars/RFU.txt")
>> out<- lars(x,y, type = "lasso")
> Error in one %*% x : requires numeric/complex matrix/vector arguments
What is the output for the following commands?
R> is(x)
R> apply(x, 2, function(x) is(x)[1])
R> is(y)
--
Steve Lianoglou
Graduate Student: Computational Systems Biology
?| Memorial Sloan-Kettering Cancer Center
?| Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact