s-news
[Top] [All Lists]

Re: Bootstrap function

To: Inmaculada Arostegui <inmaculada.arostegui@ehu.es>
Subject: Re: Bootstrap function
From: Tim Hesterberg <timh@insightful.com>
Date: Wed, 11 Jul 2007 09:05:35 -0700
Cc: s-news@lists.biostat.wustl.edu
In-reply-to: <4694D751.3070108@ehu.es> (message from Inmaculada Arostegui on Wed, 11 Jul 2007 15:12:49 +0200)
References: <4694D751.3070108@ehu.es>
The S+2000 version of bootstrap resamples from the rows of the original data.

That is an old version.  The version of bootstrap.lm in the
resample library offers the option of resampling residuals.
See download info at bottom.

Tim Hesterberg

>Hello,
>
>I am using the function bootstrap() in S-Plus 2000 in order to get 
>bootstrap confidence limits for regression coefficients in a linear 
>model. An example of the code is following:
>
>bootstrap(name,coef(lm(y~x1+x2+x3, data=name, na.actio=na.exclude)), B=1000)
>
>The goal is to use the bootstrap to obtain standard error estimates and 
>confidence limits for the linear regression coefficients from the model 
>of y regressed on x1, x2 and x3.
>Does it resample from the residuals of the linear model or from the 
>original response y?
>
>Thank you very much,
>
>Inma
>
>
>-- 
>
>Inmaculada Arostegui Madariaga
>Euskal Herriko Unibertsitatea UPV/EHU
>Matematika Aplikatua eta Estatistika eta Ikerkuntz Operatiboa Saila
>644 Postakutxa
>48080 BILBAO
>
>Tfno: 34 946015346
>Fax: 34 946013500
>e-mail: inmaculada.arostegui@ehu.es

-- 
========================================================
| Tim Hesterberg       Senior Research Scientist       |
| timh@insightful.com  Insightful Corp.                |
| (206)802-2319        1700 Westlake Ave. N, Suite 500 |
| (206)283-8691 (fax)  Seattle, WA 98109-3044, U.S.A.  |
|                      www.insightful.com/Hesterberg   |
========================================================
Download S+Resample from www.insightful.com/downloads/libraries

Bootstrap Methods and Permutation Tests
                Oct 10-11 San Francisco, 3-4 Oct UK.
Advanced Programming in S-PLUS
                Oct 8-9 San Francisco, 26-7 Sep CH, 1-2 Oct UK
                http://www.insightful.com/services/training.asp


<Prev in Thread] Current Thread [Next in Thread>