Statalist


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

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


From   Quang Nguyen <[email protected]>
To   [email protected]
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/



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