Skip to content

API Reference

estimate

Source code in causalinf/did.py
class estimate():

    def __init__(self, formula):
        """
        Fit DID model.

        Parameters
        ----------
        formula : str
            A formula that specifies the model.

        Returns
        -------
        DiD
            Object of class DiD with the fitted model.
        """
        self.formula = formula

    def summary(self):
        """
        Summarize DiD estimation 
        """
        pass

    def plot_trends(self):
        pass

    def plot_effects(self):
        pass

__init__(formula)

Fit DID model.

Parameters:

Name Type Description Default
formula str

A formula that specifies the model.

required

Returns:

Type Description
DiD

Object of class DiD with the fitted model.

Source code in causalinf/did.py
def __init__(self, formula):
    """
    Fit DID model.

    Parameters
    ----------
    formula : str
        A formula that specifies the model.

    Returns
    -------
    DiD
        Object of class DiD with the fitted model.
    """
    self.formula = formula

summary()

Summarize DiD estimation

Source code in causalinf/did.py
def summary(self):
    """
    Summarize DiD estimation 
    """
    pass