I\'m trying to implement an instrumental variables regression approach (two-stage least squares 2SLS IV regression) in spark. I have a preference for sparklyr or SparkR but