class_docstr: A simple linear model built on statmodels.
code: def _model(self, X, Y, Z, data, **kwargs):
      exog = sm.add_constant(data[[X] + list(Z)])
      endog = data[Y]
      return self.estimator(endog=endog, exog=exog, **kwargs)
  
file_path: pgmpy/pgmpy/estimators/LinearModel.py
imports: import statsmodels.api
  from statsmodels.api import OLS, GLS, WLS
label_desc: Use image node_id 2 for calling the LinearEstimator obj's underlying member method code with example usage: obj._model(X, Y, Z, data) and returns: self