We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a50944a commit b6e75dbCopy full SHA for b6e75db
linearmodels/iv/model.py
@@ -297,11 +297,6 @@ def predict(
297
if endog is not None:
298
endog = IVData(endog).pandas
299
if data is not None:
300
- if endog is not None or exog is not None:
301
- raise ValueError(
302
- "Predictions can be constructed using either exog and endog "
303
- "or data, but not both."
304
- )
305
parser = IVFormulaParser(self.formula, data, eval_env=eval_env)
306
exog = parser.exog
307
endog = parser.endog
0 commit comments