1

This is similar to another question.

I'm running a 2-stage least square regression with set of categorical variables.

I've run the model successfully once but when I tried to replicate the model it ran into this error: ValueError: instruments [exog instruments] do not have full column rank

As far as I can tell this is related to my exogenous variable missing data or having fewer rows than my other variables. However, the constant was created using this method:

df['const'] = 1
controls = ['const'] + controls

which simply adds column called 'const' to my dataframe and then adds this to my list of control variables (instruments).

I've also checked the dataframe with the new 'const' column was created and added correctly.

Any insight would be much, much appreciated.

thanks!

R_Queery
  • 497
  • 1
  • 9
  • 19

0 Answers0