Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: Bootstrapped Paired-Samples (Dependent) T-Test


From   "Hartman, Rob" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   RE: st: Bootstrapped Paired-Samples (Dependent) T-Test
Date   Fri, 28 Jan 2011 16:15:44 -0500

Thanks, Ariel.  I was nervous about goofing up resampling of clusters, but this works like a charm and does indeed give same results as the more complicated syntax.  

Rob Hartman, PhD
Applied Psychologist
The MITRE Corporation
Social, Behavioral, and Linguistic Sciences
Office: 614-447-3441 
Cell: 571-327-4714
 


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Ariel Linden, DrPH
Sent: Friday, January 28, 2011 4:11 PM
To: [email protected]
Subject: RE: st: Bootstrapped Paired-Samples (Dependent) T-Test

A more simple command that will elicit the same results as your regress
statement below is:

bootstrap, rep(100) seed(123): regress bp when, clus( patient)

Ariel


Date: Thu, 27 Jan 2011 12:28:43 -0500
From: "Hartman, Rob" <[email protected]>
Subject: RE: st: Bootstrapped Paired-Samples (Dependent) T-Test

My original objective was to employ bootstrapping, and as far as I know, you
can't employ bootstrapping in a paired t-test context.  If there is a way,
and I'm just confused on how to apply the bootstrapping syntax: (1)
apologies, (2) I welcome a tip on the syntax.

Beyond that, my plan was to use the third regression approach below (w/ more
reps).

set seed 123

sysuse bplong, clear

regress bp when

regress bp when, cluster(patient)

regress bp when, cluster(patient) vce(bootstrap (_b[when]),rep(10)
seed(123)) nodots


Rob Hartman, PhD
Applied Psychologist
The MITRE Corporation
Social, Behavioral, and Linguistic Sciences
Office: 614-447-3441 
Cell: 571-327-4714

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index