s-news
[Top] [All Lists]

Re: bootstrapping of multiple datasets

To: s-news@lists.biostat.wustl.edu
Subject: Re: bootstrapping of multiple datasets
From: "Barker, Chris [SCIUS]" <cbarker1@scius.jnj.com>
Date: Fri, 16 Jun 2006 11:04:07 -0400

Not exactly the answer you want - Look at the HMISC()  library, Frank Harrell  has some built in bootstrap procedures in his regression model functions. I believe  he has a multiple imputation function as well

        Chris Barker
Associate Director, Biostatistics
            Scios Inc.
6500 Paseo Padre Parkway
     Fremont, CA 94555
Tel 510 248 2439
Fax 510 248 2451

 -----Original Message-----
From:   s-news-owner@lists.biostat.wustl.edu [mailto:s-news-owner@lists.biostat.wustl.edu]  On Behalf Of Terrence Murphy

Sent:   Friday, June 16, 2006 6:15 AM
To:     s-news@lists.biostat.wustl.edu
Cc:     Terrence E. Murphy
Subject:        [S] bootstrapping of multiple datasets

Dear S folks,

I occasionally use S plus with the menu and wonder if anyone's willing to
share a few lines of code to solve the following task, which is essentially
data management.

I have twenty imputed datasets because my original data had 20% missing
data which looks to be MAR using the ISNI index of Troxell et al. I want to
bootstrap the coefficients of a model that will be fit to each of the
twenty imputed datasets. The logical approach seems to be to bootstrap each
of the 20 datasets and then combine all the output and take the grand mean
and grand percentiles to construct the final bootstrap estimate and
confidence intervals.

The bootstrap command from the point and click menu works like this:

coef(lm(response~predictor, data.frame))

What I want to to do is run the bootstrap function for twenty different
data sets that are combined in one data file, and indexed with a variable
called  _imputation_ = 1,2, ..., 20.

Any ideas in how I might code this in S plus?

Thanks in advance for your help.

Terrence E. Murphy, Ph.D.
Program on Aging
Yale University
1 Church St., 7th Floor
New Haven, CT 06437
terrence.murphy@yale.edu
phone: 203-764-9805
fax:      203-764-9831

--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news

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