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

From |
Quang Nguyen <quangn@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: How to solve this problem when running separate regression using stasby or looping |

Date |
Thu, 7 May 2009 05:27:29 -1000 |

Dear All, I would like to run separate estimation equations for each individual. Using the _stasby_ command such as: statsby, by(id): nl (reward=y^{alpha=1}*{beta=0.6}*exp(-{r=0.1}*t)) Stata doesn't work since there missing value or inconvergence for some individuals. Using the loop such as: forval i = 1(1)184 { nl (reward=y^{alpha=1}*{beta=0.6}*exp(-{r=0.1}*t)) if id==`i' } The same thing happens. Can you suggest me a solution so that Stata can go on with the estimation for all "estimable" individuals and assign missing value to the case with inconergence or missing value? Many thanks! -- "My father gave me the greatest gift anyone could give another person, he believed in me." - Jim Valvano * * 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/

**Follow-Ups**:**st: AW: How to solve this problem when running separate regression using stasby or looping***From:*"Martin Weiss" <martin.weiss1@gmx.de>

- Prev by Date:
**Re: st: St: Ordered Logit Question** - Next by Date:
**st: Variable estimates from GLST metaregression of observational studies** - Previous by thread:
**st: re: tsset with non-integers** - Next by thread:
**st: AW: How to solve this problem when running separate regression using stasby or looping** - Index(es):

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