[R] boot and coefficients
ripley at stats.ox.ac.uk
Wed Nov 20 16:53:26 CET 2002
Let's see? boot is not part of R, but there is one in package boot.
However, S-PLUS does not come with boot at all. I think you are
trying to use an example from the wrong package, perhaps for a
function called `bootstrap'?
The boot package and the book it supports (and MASS and the book it
supports) have plenty of examples of this, so why not follow them?
You do need to be aware of the difference beween bootstrapping
cases and bootstrapping residuals. There's an example of the latter in
On Wed, 20 Nov 2002, Andrew Beckerman wrote:
> R1.61, WinNT
> Dear listers - I am trying to implement the SPLUS example for boostrapping
> coefficients from a linear model -
> boot(data.frame, coef(eval(model$call)))
> I get errors saying that my statistic is not defined and that the
> replicates are not defined. Changing this to -
> boot(recTTM, statisitic=coef(eval(mod$call)),R=999)
> still gives the error about the statistic. Clearly I do not understand
> what the statisitic is and how to make the coefficients a function as in
> the examples in the help... can someone guide me on syntax?
> Dr. Andrew Beckerman
> Institute of Biological Science
> University of Stirling
> Stirling FK9 4LA
> +44 (0)1786 then wk-467808 fx-464994
> (APB is not responsible for anything below this)
> The University of Stirling is a university established in Scotland by
> charter at Stirling, FK9 4LA. Privileged/Confidential Information may
> be contained in this message. If you are not the addressee indicated
> in this message (or responsible for delivery of the message to such
> person), you may not disclose, copy or deliver this message to anyone
> and any action taken or omitted to be taken in reliance on it, is
> prohibited and may be unlawful. In such case, you should destroy this
> message and kindly notify the sender by reply email. Please advise
> immediately if you or your employer do not consent to Internet email
> for messages of this kind. Opinions, conclusions and other
> information in this message that do not relate to the official
> business of the University of Stirling shall be understood as neither
> given nor endorsed by it.
> 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
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