[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: NLLS problem
On Sat, 24 Sep 2005 firstname.lastname@example.org wrote:
Stata users -
Hello, I am try to estimate a wage model by non-linear least squares.
Every time I attempt to estimate it, stata gives me "
* Parameter south2 taken as constant term in model & ANOVA table"
Why is this? What am I doing incorrect? I've tried different starting
values for south2 and it doesn't seem to work.
Any help would be most appreciated!
By default -nl- tries to identify a constant term in the model. It does
that by computing the derivative d f(x;b) / d b_i for each parameter b_i.
If the standard deviation of a derivative across all the observations in
the estimation sample is less than a small fraction of the mean of the
derivative [ e*(|mean| + tau), where tau = 0.001 and by default e=0.00001
to be precise], then that parameter is assumed to be the constant term in
the model. If several parameters happen to meet that criterion, then the
last one is treated as the constant term.
To see why that works, think about the linear regression y_i = b_0 + b_1
x_i + error_i. The derivative with respect to b_0 is one for all
observations, so that the standard deviation is zero; and the criterion
mentioned above is satisfied.
If you do not have a constant term in the model, and you do not want -nl-
to search for one, use the "noconstant" option.
Hope this helps
* For searches and help try: