Re: [R] Randomly shuffle an array 1000 times

2010-10-18 Thread Dennis Murphy
Always fun to follow up your own posts The replicate() line should be v - replicate(1000, sample(s)) # generates an 800 x 1000 matrix Sorry for the bandwidth waste... Dennis On Mon, Oct 18, 2010 at 6:55 PM, Dennis Murphy djmu...@gmail.com wrote: Hi: One way to permute your sample

Re: [R] help - RE: Download.file problem

2010-10-18 Thread Duncan Murdoch
On 18/10/2010 9:32 PM, Duncan Murdoch wrote: On 18/10/2010 8:34 PM, Santosh Srinivas wrote: Dear R-helpers ... any thoughts on the below issue ... will help me complete a small project! Strange problem with download.file . for non existent URL an empty file is created but I am not able to

Re: [R] trouble installing R-patched (R-2.12.0) when TMPDIR is specified

2010-10-18 Thread Andrew Yee
I'm mortified to report that the location I set in TMPDIR was not a valid directory in the system I was using (I copied it from another system), so this is a mea culpa on my part! Andrew On Mon, Oct 18, 2010 at 7:46 AM, Prof Brian Ripley rip...@stats.ox.ac.uk wrote: On Sun, 17 Oct 2010, Andrew

[R] Strange glm(, quasipoisson) error

2010-10-18 Thread Wil M Contreras Arbaje
Dear list, I have recently encountered an odd error when running glm(dep~indep, quasipoisson): while, with a subset of my data, I could get a perfectly reasonable model, once I include all of my data (17K+ observations, 29 variables), I get the following error: Error in if (any(y 0))

Re: [R] Strange glm(, quasipoisson) error

2010-10-18 Thread Wil M Contreras Arbaje
PS.: I tried the following solution http://markmail.org/message/353xeiqtqj6jwxsx , which basically rewrites the quasipoisson to 'obviate' negative values (when using that code, I assigned it to quasipoisson2, just in case). Either way, I got a different error, which suggests that something

<    1   2