Re: [R] glm.nb error

2013-06-07 Thread Daofeng Li
In general, it's a better practice to pre-specify the size of result > (eg matrix(NA, nrow=n, ncol=4) ) and fill it as you go, rather than > using rbind() within a loop. Much more memory-efficient. > > Sarah > > On Fri, Jun 7, 2013 at 11:58 AM, Daofeng Li wrote: > > Sorry

Re: [R] glm.nb error

2013-06-07 Thread Daofeng Li
;1','1','0','0','0','0') > str(group) chr [1:8] "1" "1" "1" "1" "0" "0" "0" "0" > fit=glm.nb(y~group) Error in while ((it <- it + 1) < limit &&

Re: [R] glm.nb error

2013-06-07 Thread Daofeng Li
on limit reached Execution halted So might be the error was in 6th line, not the line I pasted before (5th line)? Sorry about that. Thanks. Daofeng On Fri, Jun 7, 2013 at 10:15 AM, Marc Schwartz wrote: > > On Jun 7, 2013, at 9:44 AM, Daofeng Li wrote: > > > Dear R Communi

Re: [R] glm.nb error

2013-06-07 Thread Daofeng Li
"c3", "c4"), class = "data.frame", row.names = c(NA, -10L)) above was the dput(dat). Thanks. Daofeng On Fri, Jun 7, 2013 at 10:47 AM, Sarah Goslee wrote: > Hi, > > On Fri, Jun 7, 2013 at 11:36 AM, Daofeng Li wrote: > > Thank you Sarah and Marc for you

[R] glm.nb error

2013-06-07 Thread Daofeng Li
Dear R Community, I have encountered a problem while using the R function glm.nb. The code that produce the error was following two lines: group=c(1,1,1,1,0,0,0,0) fit=glm.nb(y~group) While the y contains 8 sets of number like: gene2750 1 0 0 1 5 1

Re: [R] [R-help] how to install own R withour root?

2009-06-16 Thread Daofeng Li
e: > At 10:57 16/06/2009, Daofeng Li wrote: > >> Hi, >> >> i just add /home/lidaof/R/bin and /home/lidaof/R/lib to the end of the >> PATH >> variable >> yet i type R command runs the system installed R 2.4.0... >> >> > [sni

Re: [R] [R-help] how to install own R withour root?

2009-06-16 Thread Daofeng Li
Hi, i just add /home/lidaof/R/bin and /home/lidaof/R/lib to the end of the PATH variable yet i type R command runs the system installed R 2.4.0... On Tue, Jun 16, 2009 at 5:48 PM, Daofeng Li wrote: > Hi, > > actullay i am try to intsall Rpy2 (a python interface for R) later, f

Re: [R] [R-help] how to install own R withour root?

2009-06-16 Thread Daofeng Li
__ > |> From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On > Behalf Of Daofeng Li [lid...@gmail.com] > |> Sent: 13 June 2009 15:28 > |> To: Paul Hiemstra > |> Cc: r-help@r-project.org > |> Subject: Re: [R] [R-help] how to install own

Re: [R] [R-help] how to install own R withour root?

2009-06-12 Thread Daofeng Li
ck Connolly wrote: > >> On Tue, 09-Jun-2009 at 11:50AM +0800, Daofeng Li wrote: >> >> |> Dear list members, >> |> |> i am currently want to install Rpy2 in a linux box which has R 2.4.0 >> |> installed >> |> RPy requries R 2.7.0 or above >&g

[R] [R-help] how to install own R withour root?

2009-06-08 Thread Daofeng Li
bash Shell? thanks for any reply. Best Regards! -- Daofeng Li,PhD Candidate China Agricultural University [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the