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

From |
baum <baum@bc.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: Re: posting bs stats |

Date |
Mon, 19 Aug 2002 08:22:22 -0400 |

--On Monday, August 19, 2002 2:33 -0400 Olena wrote:

'I need to bootstrap a large number of statistics, actually, it is 5 statistics, calculated for the different year-category groups of the data set. Up to now I have no luck in obtaining bootstrap estimates for the number of statistics larger than 4. I use the following program, which works fine for 4 statistics : program define jobflo version 6.0 if "`1'" == "?" { global S_1 "POS_98 NEG_98 POS_99 NEG_99" exit } local i=1998 while `i'<=1999 { summarize pos if year == `i' local bf`i' = r(sum) summarize neg if year == `i' local cd`i' = r(sum) summarize xit if year == `i' local ef`i' = r(sum) local gh`i' = `bf`i' ' / `ef`i'' local jk`i' = `cd`i' '/`ef`i'' local i = `i'+1 } post `1' `gh1998' `jk1998' `gh1999' `jk1999'

You must enclose each argument to be posted in the post command with parentheses,

post `1' (`gh1998') (`jk1998') (`gh1999') (`jk1999')

This is not very well documented (on-line help shows the parens in the syntax doiagram, but the 'typical use' does not show an example of this), but the last time I had a problem with post, this was the solution provided by tech support.

Kit

*

* 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/

- Prev by Date:
**st: Further: Does your academic discipline use logit regressionswith interaction terms?** - Next by Date:
**Re: st: question re:merge** - Previous by thread:
**st: Further: Does your academic discipline use logit regressionswith interaction terms?** - Next by thread:
**Re: st: question re:merge** - Index(es):

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