Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: bootstrapping


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: bootstrapping
Date   Thu, 10 Jul 2008 21:04:32 +0100 (BST)

I would do the following before starting to mess with stuff like the
bootstrap:

expand nnoti
proportion esenti

-- Maarten

--- Vincenzo Carrieri <[email protected]> wrote:
> I have the following stata output:
> 
> > esenti = 0
> 
>     Variable |       Obs        Mean    Std. Dev.       Min       
> Max
> ______________________________________________________
>       nnotti |      1032    4.545543    4.936243          1        
> 80
> 
> -> esenti = 1
> 
>     Variable |       Obs        Mean    Std. Dev.       Min       
> Max
> __________________________________________________________
>       nnotti |      3125     9.78528    12.73163          1        
> 90
> 
> 
> "Esenti" is a dummy variable that indicates if a person copayment
> free
> or not. "nnotti" are the numbers of days spent in a hospital.
> So, the total number of nights, are 1032 (Obs)  x 4.545543 + 3125 X
> 9.78528 = 35270
>  I wish to calculate the proportion of nights spent by esenti=1 out
> of
> total nights. I compute simply this proportion, but It's just a
> sample
> proportion. Is it meaningful to randomly replicate my sample 1000
> times and compute my proportion for each of these samples? It allows
> me to have a range of values of my proportion and not only a single
> sample value. I think this should be bootstrapping, but I don't have
> a
> deep knowledge about this argument. If yes, how to do it on stata?
> 
> I appreciate any advice or comment.
> Many thanks,
> 
> Vincenzo
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
> 


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


      __________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index