jkcshea / ivmte

An R package for implementing the method in Mogstad, Santos, and Torgovitsky (2018, Econometrica).
GNU General Public License v3.0
18 stars 2 forks source link

Can we check for point identification before checking for LP/QP packages? #233

Closed a-torgovitsky closed 1 year ago

a-torgovitsky commented 1 year ago

Example:

library("ivmte")

ivmte(data = AE,
      outcome ~ worked,
      propensity = morekids ~ samesex,
      target = "att",
      m0 = ~ u,
      m1 = ~ u)

If Gurobi is installed, this works fine. But Gurobi is not needed for this, since it's point identified. If Gurobi is not installed, I get this error:

Error: A direct regression via quadratic programming may only be peformed if the solver is Gurobi or MOSEK. Please install either solver and set 'solver = "gurobi"' or 'solver = "rmosek"'.

I think we want people to be able to use ivmte for point identified cases without having to have a solver installed.

jkcshea commented 1 year ago

Ah sorry, I thought I had taken care of this in the past. I must have undone it or misremembered. It should now be fixed!