[R] plot history, libraries, weights

Prof Brian D Ripley ripley at stats.ox.ac.uk
Mon Sep 4 19:41:28 CEST 2000

On Mon, 4 Sep 2000, Charles Raux wrote:

> 3 general questions:
> 1) How can I have the plot History Recording automatically turned on 
> each time I start R (Windows)?

You can't.  We'll treat that as an enhancement request.  It's actually a
per-device switch, so it could be part of the windows() function

> 2) How can I have some libraries automatically loaded at R start?

Use .Rprofile. See ?Startup

> 3) As far as I know weights can be specified only for lm. How can I 
> take account of weights with a weighted sample in other models or 
> functions (table but also other multivariate and cluster techniques)?

It can be specified for lots of modelling functions.  Beware though, that
what `weights' means needs careful definition, and Stata (I believe)
manages to have four kinds of weights.  In regression weights=4
could mean `I have four of these cases' or `give this case weight 4
in weighted LS', for example.  Fortunately in regression it rarely
matters, but it can do in other settings.

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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list