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: can cond() be nested (within nl)?

From   David Raitzer <>
To   "" <>
Subject   st: can cond() be nested (within nl)?
Date   Mon, 3 Dec 2012 17:59:15 +0800 (SGT)


I am trying to do a segmented linear regression with the nl function and cond.  The intention is to have two breakpoints and 3 segments, which means that 3 conditions are required.   Can cond be nested within nl to apply more than 2 conditions?  If not, what is the best way to approach such a regression when the segmentation depends upon 3 ranges of an x, rather than only 2? Thanks!


*   For searches and help try:

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