matrices.ResponseMatrix
matrices.ResponseMatrix(term)Response matrix for a model.
Parameters
term :Response-
The term that represents the response in the model.
Attributes
Methods
| Name | Description |
|---|---|
| as_dataframe | Returns self.design_matrix as a pandas.DataFrame. |
| evaluate | Evaluates self.term inside the data mask provided by data and |
as_dataframe
matrices.ResponseMatrix.as_dataframe()Returns self.design_matrix as a pandas.DataFrame.
evaluate
matrices.ResponseMatrix.evaluate(data, env)Evaluates self.term inside the data mask provided by data and updates self.design_matrix and self.name.