Re: [R] Troubles plotting lrm output in Design Library

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sat, 31 May 2008 05:15:53 +0100 (BST)

On Fri, 30 May 2008, Frank E Harrell Jr wrote:

> Prof Brian Ripley wrote:
>> On Fri, 30 May 2008, Patrizio Frederic wrote:
>>
>>>> Thanks for the solution. But I wish someone would tell us why the
>>>> solution
>>>> makes sense. If you have changed your R environment in any way from the
>>>> defaults please let us know.
>>>>
>>>> Frank
>>>>
>>>> --
>>>> Frank E Harrell Jr Professor and Chair School of Medicine
>>>> Department of Biostatistics Vanderbilt University
>>>>
>>>
>>> dear Harrell and R users,
>>> It took me several hours to figure out. I apologize it was my mistake.
>>> Few month ago a modified copy of .Options was created in Rprofile (I
>>> don't remember why). The copy masked the alias .Options created by
>>> options().
>>> Now everything is fixed. Now I know how .Options and options are
>>> related one each other. Sorry for wasting your time.

>>> Thank you for your help.
>>
>> This is an infelicity in Design and Hmisc (and a few other packages), in
>> that they do look at the first visible .Options. R itself only looks at
>> the copy in the symbol table (which also appears in the base namespace).
>>
>
> I hadn't thought of that. Thanks Brian. I think of .Options$foo as being
> faster. Is there a preferred approach other than options('foo')?

getOption("foo"). Because .Options is a pairlist, the speed can be illusory.

>
> Thanks
> Frank
>
>
> --
> Frank E Harrell Jr Professor and Chair School of Medicine
> Department of Biostatistics Vanderbilt University
>

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
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, UK                Fax:  +44 1865 272595

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 02 Jun 2008 - 04:24:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 02 Jun 2008 - 04:30:40 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive