Search found 3 matches

by brianleblanc
Thu Jun 21, 2018 8:36 am
Forum: Models
Topic: Using max(0,eqn) in model
Replies: 1
Views: 11006

Using max(0,eqn) in model

I have a number of equations I've estimated using OLS that I grouped into a model. What I'm looking to do is to bound one of the equations below by zero in the model when doing simulations. e.g. equation EQN EQN.ls X = c(1) + C(2)*Y model MOD MAX(0,EQN) That way, when I solve the model it overwrites...
by brianleblanc
Wed May 02, 2018 10:41 am
Forum: Programming
Topic: Obtain certain cross-section fixed effects constant
Replies: 3
Views: 3421

Re: Obtain certain cross-section fixed effects constant

How to I obtain the string values in the table?

For example, @val(table(2,2)) produces NA but I need it to produce ALBERTA
by brianleblanc
Wed May 02, 2018 10:28 am
Forum: Programming
Topic: Obtain certain cross-section fixed effects constant
Replies: 3
Views: 3421

Obtain certain cross-section fixed effects constant

I've run a number of panel regressions in a loop, and I'm looking for a way to programmatically grab the FE contants. I know that the following produces a table of the fixed effects constants. equation LR LR.ls Y = C(1) + C(2)*X LR.effects Which for me produces a table like: PROV Effect 1 ALBERTA 2....

Go to advanced search