Re: [Rd] problem with zero-weighted observations in predict.lm?

2010-07-28 Thread Prof Brian Ripley
On Thu, 29 Jul 2010, Peter Dalgaard wrote: Peter Dalgaard wrote: William Dunlap wrote: In modelling functions some people like to use a weight of 0 to drop an observation instead of using a subset value of FALSE. E.g., weights=c(0,1,1,...) instead of subset=c(FALSE, TRUE, TRUE, ...) to dr

Re: [Rd] problem with zero-weighted observations in predict.lm?

2010-07-28 Thread Peter Dalgaard
Peter Dalgaard wrote: > William Dunlap wrote: >> In modelling functions some people like to use >> a weight of 0 to drop an observation instead of >> using a subset value of FALSE. E.g., >> weights=c(0,1,1,...) >> instead of >> subset=c(FALSE, TRUE, TRUE, ...) >> to drop the first observation.

Re: [Rd] R.exe crashes on R v2.12.0dev (Windows Vista)

2010-07-28 Thread Henrik Bengtsson
On Wed, Jul 28, 2010 at 6:24 PM, Duncan Murdoch wrote: > On 28/07/2010 11:06 AM, Duncan Murdoch wrote: >> >> On 28/07/2010 9:37 AM, Henrik Bengtsson wrote: >> > Hi, >> > >> > by pure luck, I discovered that it has to do with the number of >> > characters (or similar) in the Windows system environm

Re: [Rd] R.exe crashes on R v2.12.0dev (Windows Vista)

2010-07-28 Thread Duncan Murdoch
On 28/07/2010 11:06 AM, Duncan Murdoch wrote: On 28/07/2010 9:37 AM, Henrik Bengtsson wrote: > Hi, > > by pure luck, I discovered that it has to do with the number of > characters (or similar) in the Windows system environment variable > 'PATH'. I used a custom PATH when it crashed. When I trie

Re: [Rd] R.exe crashes on R v2.12.0dev (Windows Vista)

2010-07-28 Thread Duncan Murdoch
On 28/07/2010 9:37 AM, Henrik Bengtsson wrote: Hi, by pure luck, I discovered that it has to do with the number of characters (or similar) in the Windows system environment variable 'PATH'. I used a custom PATH when it crashed. When I tried to a plain/fresh Command prompt, the PATH is shorter

Re: [Rd] R.exe crashes on R v2.12.0dev (Windows Vista)

2010-07-28 Thread Henrik Bengtsson
Hi, by pure luck, I discovered that it has to do with the number of characters (or similar) in the Windows system environment variable 'PATH'. I used a custom PATH when it crashed. When I tried to a plain/fresh Command prompt, the PATH is shorter and then R.exe doesn't crash. This is that worki

Re: [Rd] Plot window does not update in embedded code

2010-07-28 Thread Jan van der Laan
Took a while to find enough time to have a good look at this, but I have this working now. I am using the for-loop calling the handlers. Using only R_CheckUserInterrupt() did not work. It was a bit of work to track down all of the function declarations in R's source. Thanks! Regards, Jan On Th

Re: [Rd] R CMD build wiped my computer

2010-07-28 Thread Jarrod Hadfield
Hi Martin, I think this is the most likely reason given that the name in the DESCRIPTION file does NOT have a version number. Even so, it is very easy to misname a file and then delete it/change its name (as I've done here) and I hope current versions of R would not cause this problem. Pe

Re: [Rd] R CMD build wiped my computer

2010-07-28 Thread Martin Maechler
> Jarrod Hadfield > on Tue, 27 Jul 2010 21:37:09 +0100 writes: > Hi, I ran R (version 2.9.0) CMD build under root in > Fedora (9). When it tried to remove "junk files" it > removed EVERYTHING in my local account! (See below). > Can anyone tell me what happened, the

[Rd] R CMD build wiped my computer

2010-07-28 Thread Jarrod Hadfield
Hi, I ran R (version 2.9.0) CMD build under root in Fedora (9). When it tried to remove "junk files" it removed EVERYTHING in my local account! (See below). Can anyone tell me what happened, and even more importantly if I can I restore what was lost. Panickingly, Jarrod [jar...@localh

[Rd] nlme: augPred.lme for factor covariates

2010-07-28 Thread Thaler, Thorn, LAUSANNE, Applied Mathematics
Hi everybody, as you may be aware the function augPred.lme does not work as soon as the covariate is a factor. The problem lies in the line newprimary <- seq(from = minimum, to = maximum, length.out = length.out) which does not make sense for factors. I think augPred.lme can be useful for models