class_docstr: A wrapper class that uses IV2SLS from statsmodel
  
  A linear 2SLS model that estimates the average treatment effect with endogenous treatment variable.
docstr: Initializes the class.
docstr_tok: ["Initializes","the","class","."]
code: def __init__(self):
      """
      Initializes the class.
      """
  
      self.method = "2SLS"
  
file_path: causalml/causalml/inference/iv/iv_regression.py
imports: import numpy
  from causalml.inference.meta.utils import convert_pd_to_np
  import statsmodels.api
  from statsmodels.sandbox.regression.gmm import IV2SLS
label_desc: Use image node_id 1 to create a new IVRegressor object from inherited base classes: object with example: obj = IVRegressor()