Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: Initial Values for NL Estimation with parmby


From   Schöler, Lisa <lschoeler@wiwi.uni-frankfurt.de>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Initial Values for NL Estimation with parmby
Date   Tue, 25 Dec 2012 17:27:32 +0000

Dear Statalist,

I am trying to run an nl estimation with parmby. This is my code

parmby "nl (installs= {b0}/(1+exp({-b1}-{b2}*t)))",by(group_id) saving(installsneuTMS,replace)

This works well. Now I want to set my intial values. I have read the help and found that I can set intial values to absolute numbers, like this

parmby "nl (installs= {b0}/(1+exp({-b1}-{b2}*t))), initial (b0 1000)",by(group_id) saving(installsneuTMS,replace)

But what I want to do ist set the intial value equal to the numbers of another variable, depending on the group_id (intital  values = VariableX).

Can anybody tell me how to do this?

Merry Christmas
Lisa
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index