| 1 |
// EXPECTEDFAIL Test: Heterogeneous endogenous with lag < -1 is not supported |
| 2 |
// |
| 3 |
// This test verifies that the preprocessor correctly rejects heterogeneous |
| 4 |
// endogenous variables with lags deeper than -1 in model(heterogeneity=...) blocks. |
| 5 |
// |
| 6 |
// Example: k(-2) where k is var(heterogeneity=households) |
| 7 |
// |
| 8 |
// Expected result: Preprocessor error with message about lag -2 not supported |
| 9 |
|
| 10 |
heterogeneity_dimension households; |
| 11 |
|
| 12 |
var(heterogeneity=households) c k; |
| 13 |
varexo(heterogeneity=households) e; |
| 14 |
var r; |
| 15 |
parameters beta; |
| 16 |
|
| 17 |
beta = 0.99; |
| 18 |
|
| 19 |
model(heterogeneity=households); |
| 20 |
c - k(-2); // ERROR: lag -2 not supported |
| 21 |
k - e; |
| 22 |
end; |
| 23 |
|
| 24 |
model; |
| 25 |
r - 0.04; |
| 26 |
end; |