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: nl command with FGLS estimator?

From   Jordan Silberman <>
Subject   st: nl command with FGLS estimator?
Date   Thu, 17 Jan 2013 14:28:38 -0500


I'm using the following nl command to estimate the location of a
single knot in a piecewise regression model:

nl (coef = ({cons} + {b1}*age)*(age < {c}) + ///
  ({cons} + {b1}*{c} + {b2}*(age-{c}))*(age >= {c}))

My question is this: is it possible to estimate this model in Stata
with a feasible generalized least squares (FGLS) estimator? I ask
because the DV in this model is a set of coefficients from a large
number of OLS regressions, and FGLS has been recommended in these
types of situations (eg, Achen, 2005, Political Analysis journal).

Any advice would be appreciated.

*   For searches and help try:

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