Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: Initial Values for NL Estimation with parmby


From   Schöler, Lisa <[email protected]>
To   "[email protected]" <[email protected]>
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index