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: number of constraints for cnsreg

From   "Tranos, E." <>
To   "''" <>
Subject   st: number of constraints for cnsreg
Date   Wed, 10 Jul 2013 16:51:21 +0000

Hi statalist,

I am trying to run the following constrained regression: 

cnsreg Y Y_t-1 FE_1 - FE_3000 FE_1xX_t-1 - FE_3000xX_t-1 Z_t-1

where FE_1-FE_3000 are fixed effects (panel data set with 3000 cross-section units), which I then interact with the variable X_t-1. I have to run this regression twice using one of the following set of constraints each time:

constraint define 1 FE_1xX_t-1 = 0
constraint define 2 FE_2xX_t-1 = 0
constraint define 3000 FE_3000xX_t-1


constraint define 1 FE_2xX_t-1 = FE_1xX_t-1
constraint define 2 FE_3xX_t-1 = FE_1xX_t-1
constraint define 2999 FE_3000xX_t-1 = FE_1xX_t-1

However, Stata 12.1 only accepts up to 1999 constraints according to the 'constraint define' function. Any ideas of how I could overcome this limitation?

Thanks in advance,

*   For searches and help try:

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