Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: Nonlinear Least Squares Problem

From   "Dale W. Larson" <>
Subject   Re: st: RE: Nonlinear Least Squares Problem
Date   Mon, 15 Sep 2003 09:32:28 -0400


At 10:26 AM 9/15/2003 +0100, you wrote:

>The real problem is something wrong with your program 
>or with your call to -nl-. I suspect we need to 
>see your program code to say more. 

My program/do-file is attached.

FYI, the estimating equation is not my true model but a simple test of the
nl procedure with only 2 independent variables.



program define nlnonlinear
version 7.0
use Workfile3
if "`1'"=="?" {
global S_1 "B1 B2"
global B1=.5
global B2=.5
replace `1'= (rgdp1^$B1)*(rgdp2^$B2)
*End of program.  Ready to do nonliner regression.

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