Re: [Rd] typo in `eurodist'

2005-12-08 Thread Martin Maechler
> "Torsten" == Torsten Hothorn <[EMAIL PROTECTED]>
> on Thu, 8 Dec 2005 08:51:57 +0100 (CET) writes:

Torsten> On Wed, 7 Dec 2005, Prof Brian Ripley wrote:

>> I've often wondered about that.

Torsten> and the copy editor did too :-)

>> I've presumed that the names were
>> deliberate, so have you checked the stated source?  It's not readily
>> available to me (as one would expect in Oxford)?

Torsten> our library doesn't seems to have a copy of `The Cambridge
Torsten> Encyclopaedia', so I can't check either. Google has 74.900 hits for
Torsten> `Gibralta' (more than one would expect for a typo, I think)
Torsten> and 57.700.000 for `Gibraltar'.

Torsten> So maybe both spellings are in use.

Well,  do you expect web authors to have a much lower rate of
typos than 1:770 ?
My limited experience on "google voting for spelling correction"
has rather lowered my expectation on webauthors' education in
orthography...

Martin

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] qt for df < 1

2005-12-08 Thread roger koenker
I was experimenting yesterday with a binomial make.link option
for estimating student t binary response models, tentatively
called gossit, and I noticed eventually that the R qt function doesn't
like df < 1.  Vaguely recalling that Splus didn't seem to mind such
weirdness,  I checked on our soon to be defunct Splus6.2 and
sure enough, it produced plausible answers instead of R's NA's.
Of course, I have no way of judging the quality of these answers,
but I'm curious about whether someone has already looked into
this can of worms.


url:www.econ.uiuc.edu/~rogerRoger Koenker
email[EMAIL PROTECTED]Department of Economics
vox: 217-333-4558University of Illinois
fax:   217-244-6678Champaign, IL 61820

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] typo in `eurodist'

2005-12-08 Thread Spencer Graves
  I'm with Martin:  When I get the same number of hits for two 
spellings, I believe that both are acceptable.  When I get substantially 
different numbers of hits, I generally go with the one with the most 
hits -- unless the different spellings carry different meanings, of 
course.

  Example:  "gage" vs. "gauge" vs. "guage":  24e6 vs. 32e6 vs 3e6.  The 
last is a typo.  The first has a special meaning, though "gauge" is 
sometimes used in that context.  However, when discussing repeatability 
and reproducibility, I prefer "gage", because it's more restrictive and 
therefore seems clearer to me.

  spencer graves

Martin Maechler wrote:

>>"Torsten" == Torsten Hothorn <[EMAIL PROTECTED]>
>>on Thu, 8 Dec 2005 08:51:57 +0100 (CET) writes:
> 
> 
> Torsten> On Wed, 7 Dec 2005, Prof Brian Ripley wrote:
> 
> >> I've often wondered about that.
> 
> Torsten> and the copy editor did too :-)
> 
> >> I've presumed that the names were
> >> deliberate, so have you checked the stated source?  It's not readily
> >> available to me (as one would expect in Oxford)?
> 
> Torsten> our library doesn't seems to have a copy of `The Cambridge
> Torsten> Encyclopaedia', so I can't check either. Google has 74.900 hits 
> for
> Torsten> `Gibralta' (more than one would expect for a typo, I think)
> Torsten> and 57.700.000 for `Gibraltar'.
> 
> Torsten> So maybe both spellings are in use.
> 
> Well,  do you expect web authors to have a much lower rate of
> typos than 1:770 ?
> My limited experience on "google voting for spelling correction"
> has rather lowered my expectation on webauthors' education in
> orthography...
> 
> Martin
> 
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Spencer Graves, PhD
Senior Development Engineer
PDF Solutions, Inc.
333 West San Carlos Street Suite 700
San Jose, CA 95110, USA

[EMAIL PROTECTED]
www.pdf.com 
Tel:  408-938-4420
Fax: 408-280-7915

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] qt for df < 1

2005-12-08 Thread Peter Dalgaard
roger koenker <[EMAIL PROTECTED]> writes:

> I was experimenting yesterday with a binomial make.link option
> for estimating student t binary response models, tentatively
> called gossit, and I noticed eventually that the R qt function doesn't
> like df < 1.  Vaguely recalling that Splus didn't seem to mind such
> weirdness,  I checked on our soon to be defunct Splus6.2 and
> sure enough, it produced plausible answers instead of R's NA's.
> Of course, I have no way of judging the quality of these answers,
> but I'm curious about whether someone has already looked into
> this can of worms.

Well the help page has:

For 'qt' only values of at least one are currently supported.

and someone must have written that...

R does have pt for df < 1, so a temporary fix using uniroot() seems
doable.

-- 
   O__   Peter Dalgaard Ă˜ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark  Ph:  (+45) 35327918
~~ - ([EMAIL PROTECTED])  FAX: (+45) 35327907

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] qt for df < 1

2005-12-08 Thread Prof Brian Ripley
On Thu, 8 Dec 2005, roger koenker wrote:

> I was experimenting yesterday with a binomial make.link option
> for estimating student t binary response models, tentatively
> called gossit, and I noticed eventually that the R qt function doesn't
> like df < 1.  Vaguely recalling that Splus didn't seem to mind such
> weirdness,  I checked on our soon to be defunct Splus6.2 and
> sure enough, it produced plausible answers instead of R's NA's.
> Of course, I have no way of judging the quality of these answers,

Why not?: qt is the inverse of pt.

> but I'm curious about whether someone has already looked into
> this can of worms.

Note from the help page:

   df: degrees of freedom (> 0, maybe non-integer).  'df = Inf' is
   allowed.  For 'qt' only values of at least one are currently
   supported.

so, yes, it is known about.

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] typo in `eurodist'

2005-12-08 Thread Ted Harding
On 08-Dec-05 Martin Maechler wrote:
>> "Torsten" == Torsten Hothorn <[EMAIL PROTECTED]>
>> on Thu, 8 Dec 2005 08:51:57 +0100 (CET) writes:
> 
> Torsten> On Wed, 7 Dec 2005, Prof Brian Ripley wrote:
> >> I've often wondered about that.
> Torsten> and the copy editor did too :-)
> 
> >> I've presumed that the names were
> >> deliberate, so have you checked the stated source?  It's not
> >> readily available to me (as one would expect in Oxford)?
> 
> Torsten> our library doesn't seems to have a copy of `The
> Torsten> Cambridge Encyclopaedia', so I can't check
> Torsten> either. Google has 74.900 hits for `Gibralta'
> Torsten> (more than one would expect for a typo, I think)
> Torsten> and 57.700.000 for `Gibraltar'.
> 
> Torsten> So maybe both spellings are in use.
> 
> Well,  do you expect web authors to have a much lower rate of
> typos than 1:770 ?
> My limited experience on "google voting for spelling correction"
> has rather lowered my expectation on webauthors' education in
> orthography...
> 
> Martin

Hmmm ... Using my Google's "Results ... of about xxx":


  Gibraltar 50,700,000 
  Gibralta  75,200
  Gibraltr 573
  Gibralar 836
  Gibratar   1,020
  Gibrltar 349
  Gibaltar   1,850
  Giraltar 530
  Gbraltar 352
  ibralter 576

I'm not proposing to get exhaustive about this, but a few further
experiments suggest that other specific typos are typically O(500)
in frequency:

  Gibralatar   589
  Gibrlatar618
  Gibrltar 349
  Gobraltar652


So -- if anyone can find a typo of "Gibraltar" which googles to
more than 5000 hits (excepting "Gibralta")?

Best wishes,
Ted.



E-Mail: (Ted Harding) <[EMAIL PROTECTED]>
Fax-to-email: +44 (0)870 094 0861
Date: 08-Dec-05   Time: 18:58:04
-- XFMail --

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] grid graphics gpar(fill) argument and jpeg device

2005-12-08 Thread Florian Hahne
Hi everybody,
I just notice a strange behaviour of gpar's fill argument when using 
non-postscript devices:
The default of the argument is transparent (according to get.gpar("fill")).
So as expected, the following code draws a nice red rectangle in the 
middle of my X11 or postscript device.

pushViewport(viewport(width=0.5, height=0.5))
grid.rect(gp=gpar(fill="red"))
grid.rect()

However, when plotting on  a jpeg device (or any other pixel device), 
the output of the above code is an empty (=white) rectangle. Obviously 
the second grid.rect() which should produce a transparent rectangle 
turns out to be filled white on the jpeg device. When I set the fill 
argument to NA, the second rectangle is transparent as it is supposed to be.

grid.rect(gp=gpar(fill="red"))
grid.rect(gp=gpar(fill=NA))

Is this a bug or a feature???
I'm using R version 2.2.0 on a SUSE 10.0 linux machine.

Cheers,
Florian

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] typo in `eurodist'

2005-12-08 Thread Gabor Grothendieck
This makes it pretty clear which are the meaningful ones:

g <- structure(c(5070, 75200, 573, 836, 1020, 349, 1850, 530,
352, 576, 589, 618, 349, 652), .Names = c("Gibraltar", "Gibralta",
"Gibraltr", "Gibralar", "Gibratar", "Gibrltar", "Gibaltar", "Giraltar",
"Gbraltar", "ibralter", "Gibralatar", "Gibrlatar", "Gibrltar",
"Gobraltar"))
plot(lm(log(g) ~ 1), which = 2)


On 12/8/05, Ted Harding <[EMAIL PROTECTED]> wrote:
> On 08-Dec-05 Martin Maechler wrote:
> >> "Torsten" == Torsten Hothorn <[EMAIL PROTECTED]>
> >> on Thu, 8 Dec 2005 08:51:57 +0100 (CET) writes:
> >
> > Torsten> On Wed, 7 Dec 2005, Prof Brian Ripley wrote:
> > >> I've often wondered about that.
> > Torsten> and the copy editor did too :-)
> >
> > >> I've presumed that the names were
> > >> deliberate, so have you checked the stated source?  It's not
> > >> readily available to me (as one would expect in Oxford)?
> >
> > Torsten> our library doesn't seems to have a copy of `The
> > Torsten> Cambridge Encyclopaedia', so I can't check
> > Torsten> either. Google has 74.900 hits for `Gibralta'
> > Torsten> (more than one would expect for a typo, I think)
> > Torsten> and 57.700.000 for `Gibraltar'.
> >
> > Torsten> So maybe both spellings are in use.
> >
> > Well,  do you expect web authors to have a much lower rate of
> > typos than 1:770 ?
> > My limited experience on "google voting for spelling correction"
> > has rather lowered my expectation on webauthors' education in
> > orthography...
> >
> > Martin
>
> Hmmm ... Using my Google's "Results ... of about xxx":
>
>
>  Gibraltar 50,700,000
>  Gibralta  75,200
>  Gibraltr 573
>  Gibralar 836
>  Gibratar   1,020
>  Gibrltar 349
>  Gibaltar   1,850
>  Giraltar 530
>  Gbraltar 352
>  ibralter 576
>
> I'm not proposing to get exhaustive about this, but a few further
> experiments suggest that other specific typos are typically O(500)
> in frequency:
>
>  Gibralatar   589
>  Gibrlatar618
>  Gibrltar 349
>  Gobraltar652
>
>
> So -- if anyone can find a typo of "Gibraltar" which googles to
> more than 5000 hits (excepting "Gibralta")?
>
> Best wishes,
> Ted.
>
>
> 
> E-Mail: (Ted Harding) <[EMAIL PROTECTED]>
> Fax-to-email: +44 (0)870 094 0861
> Date: 08-Dec-05   Time: 18:58:04
> -- XFMail --
>
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] typo in `eurodist'

2005-12-08 Thread Tony Plate
I would be wary of taking frequency of misspelling as an indication of 
"correctness".

Witness the following Google counts:

Amateur (correct): 52,300,000
Amature: 2,800,000
Amatuer: 2,660,000
Ameteur: 619,000
Ameture: 941,000
Ametuer: 574,000

Here's a common misspelling at > %10

Collectible (correct): 26,900,000
Collectable: 4,140,000

More targets at
http://www.yourdictionary.com/library/misspelled.html

(BTW, one can find a list of "commonly misspelt wods" using Google :-)

-- Tony Plate

(Ted Harding) wrote:
> On 08-Dec-05 Martin Maechler wrote:
> 
>>>"Torsten" == Torsten Hothorn <[EMAIL PROTECTED]>
>>>on Thu, 8 Dec 2005 08:51:57 +0100 (CET) writes:
>>
>>Torsten> On Wed, 7 Dec 2005, Prof Brian Ripley wrote:
>>>> I've often wondered about that.
>>Torsten> and the copy editor did too :-)
>>
>>>> I've presumed that the names were
>>>> deliberate, so have you checked the stated source?  It's not
>>>> readily available to me (as one would expect in Oxford)?
>>
>>Torsten> our library doesn't seems to have a copy of `The
>>Torsten> Cambridge Encyclopaedia', so I can't check
>>Torsten> either. Google has 74.900 hits for `Gibralta'
>>Torsten> (more than one would expect for a typo, I think)
>>Torsten> and 57.700.000 for `Gibraltar'.
>>
>>Torsten> So maybe both spellings are in use.
>>
>>Well,  do you expect web authors to have a much lower rate of
>>typos than 1:770 ?
>>My limited experience on "google voting for spelling correction"
>>has rather lowered my expectation on webauthors' education in
>>orthography...
>>
>>Martin
> 
> 
> Hmmm ... Using my Google's "Results ... of about xxx":
> 
> 
>   Gibraltar 50,700,000 
>   Gibralta  75,200
>   Gibraltr 573
>   Gibralar 836
>   Gibratar   1,020
>   Gibrltar 349
>   Gibaltar   1,850
>   Giraltar 530
>   Gbraltar 352
>   ibralter 576
> 
> I'm not proposing to get exhaustive about this, but a few further
> experiments suggest that other specific typos are typically O(500)
> in frequency:
> 
>   Gibralatar   589
>   Gibrlatar618
>   Gibrltar 349
>   Gobraltar652
> 
> 
> So -- if anyone can find a typo of "Gibraltar" which googles to
> more than 5000 hits (excepting "Gibralta")?
> 
> Best wishes,
> Ted.
> 
> 
> 
> E-Mail: (Ted Harding) <[EMAIL PROTECTED]>
> Fax-to-email: +44 (0)870 094 0861
> Date: 08-Dec-05   Time: 18:58:04
> -- XFMail --
> 
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] typo in `eurodist'

2005-12-08 Thread Gabor Grothendieck
Yet the methodology of my prior post seems to pick out the
correct one:

a <- c(Amateur = 5230,
Amature = 280,
Amatuer = 266,
Ameteur = 619000,
Ameture = 941000,
Ametuer = 574000)
plot(lm(log(a) ~ 1), which = 2)


On 12/8/05, Tony Plate <[EMAIL PROTECTED]> wrote:
> I would be wary of taking frequency of misspelling as an indication of
> "correctness".
>
> Witness the following Google counts:
>
> Amateur (correct): 52,300,000
> Amature: 2,800,000
> Amatuer: 2,660,000
> Ameteur: 619,000
> Ameture: 941,000
> Ametuer: 574,000
>
> Here's a common misspelling at > %10
>
> Collectible (correct): 26,900,000
> Collectable: 4,140,000
>
> More targets at
> http://www.yourdictionary.com/library/misspelled.html
>
> (BTW, one can find a list of "commonly misspelt wods" using Google :-)
>
> -- Tony Plate
>
> (Ted Harding) wrote:
> > On 08-Dec-05 Martin Maechler wrote:
> >
> >>>"Torsten" == Torsten Hothorn <[EMAIL PROTECTED]>
> >>>on Thu, 8 Dec 2005 08:51:57 +0100 (CET) writes:
> >>
> >>Torsten> On Wed, 7 Dec 2005, Prof Brian Ripley wrote:
> >>>> I've often wondered about that.
> >>Torsten> and the copy editor did too :-)
> >>
> >>>> I've presumed that the names were
> >>>> deliberate, so have you checked the stated source?  It's not
> >>>> readily available to me (as one would expect in Oxford)?
> >>
> >>Torsten> our library doesn't seems to have a copy of `The
> >>Torsten> Cambridge Encyclopaedia', so I can't check
> >>Torsten> either. Google has 74.900 hits for `Gibralta'
> >>Torsten> (more than one would expect for a typo, I think)
> >>Torsten> and 57.700.000 for `Gibraltar'.
> >>
> >>Torsten> So maybe both spellings are in use.
> >>
> >>Well,  do you expect web authors to have a much lower rate of
> >>typos than 1:770 ?
> >>My limited experience on "google voting for spelling correction"
> >>has rather lowered my expectation on webauthors' education in
> >>orthography...
> >>
> >>Martin
> >
> >
> > Hmmm ... Using my Google's "Results ... of about xxx":
> >
> >
> >   Gibraltar 50,700,000
> >   Gibralta  75,200
> >   Gibraltr 573
> >   Gibralar 836
> >   Gibratar   1,020
> >   Gibrltar 349
> >   Gibaltar   1,850
> >   Giraltar 530
> >   Gbraltar 352
> >   ibralter 576
> >
> > I'm not proposing to get exhaustive about this, but a few further
> > experiments suggest that other specific typos are typically O(500)
> > in frequency:
> >
> >   Gibralatar   589
> >   Gibrlatar618
> >   Gibrltar 349
> >   Gobraltar652
> >
> >
> > So -- if anyone can find a typo of "Gibraltar" which googles to
> > more than 5000 hits (excepting "Gibralta")?
> >
> > Best wishes,
> > Ted.
> >
> >
> > 
> > E-Mail: (Ted Harding) <[EMAIL PROTECTED]>
> > Fax-to-email: +44 (0)870 094 0861
> > Date: 08-Dec-05   Time: 18:58:04
> > -- XFMail --
> >
> > __
> > R-devel@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-devel
> >
>
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] grid graphics gpar(fill) argument and jpeg device

2005-12-08 Thread Paul Murrell
Hi


Florian Hahne wrote:
> Hi everybody,
> I just notice a strange behaviour of gpar's fill argument when using 
> non-postscript devices:
> The default of the argument is transparent (according to get.gpar("fill")).
> So as expected, the following code draws a nice red rectangle in the 
> middle of my X11 or postscript device.
> 
> pushViewport(viewport(width=0.5, height=0.5))
> grid.rect(gp=gpar(fill="red"))
> grid.rect()
> 
> However, when plotting on  a jpeg device (or any other pixel device), 
> the output of the above code is an empty (=white) rectangle. Obviously 
> the second grid.rect() which should produce a transparent rectangle 
> turns out to be filled white on the jpeg device. When I set the fill 
> argument to NA, the second rectangle is transparent as it is supposed to be.
> 
> grid.rect(gp=gpar(fill="red"))
> grid.rect(gp=gpar(fill=NA))
> 
> Is this a bug or a feature???
> I'm using R version 2.2.0 on a SUSE 10.0 linux machine.


Feature.  The top-level grid viewport (representing the entire device) 
takes starting values for things like text size, background colour, etc 
from the device;  from R version 2.2, this includes using 'fg' and 'bg' 
from the device for gpar(col) and gpar(fill).  This is so that if you 
start a device using something like postscript(bg="red"), the gpar(fill) 
for the top-level grid viewport will be "red".

The default 'bg' for PostScript is "transparent", but for jpeg the 
default 'bg' is "white".

Paul
-- 
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
[EMAIL PROTECTED]
http://www.stat.auckland.ac.nz/~paul/

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel