Bookmark and Share

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

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

st: Initial Values for NL Estimation with parmby

From   Schöler, Lisa <>
To   "" <>
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
*   For searches and help try:

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