Skip to content

Commit e84c199

Browse files
committed
add/improve module level docstrings
1 parent 28f3b07 commit e84c199

10 files changed

+36
-6
lines changed

causalpy/exp_inverse_propensity_weighting.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
"""
15+
Inverse propensity weighting
16+
"""
17+
1418
import arviz as az
1519
import matplotlib.pyplot as plt
1620
import numpy as np

causalpy/experiments.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
"""
15+
Base class for quasi experimental designs.
16+
"""
1417

1518

1619
class ExperimentalDesign:

causalpy/expt_diff_in_diff.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
"""
15+
Difference in differences
16+
"""
1417

1518
import numpy as np
1619
import pandas as pd

causalpy/expt_instrumental_variable.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
"""
15+
Instrumental variable regression
16+
"""
17+
1418
import numpy as np
1519
import pandas as pd
1620
from patsy import dmatrices

causalpy/expt_prepostfit.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
"""
15+
Pre/post intervention fit experiment designs
16+
"""
17+
1418
from typing import Union
1519

1620
import numpy as np

causalpy/expt_prepostnegd.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
"""
15+
Pretest/posttest nonequivalent group design
16+
"""
1417

1518
import numpy as np
1619
import pandas as pd

causalpy/expt_regression_discontinuity.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
"""
15+
Regression discontinuity design
16+
"""
1417

1518
import warnings # noqa: I001
1619

causalpy/expt_regression_kink.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
15+
"""
16+
Regression kink design
17+
"""
18+
1419
import warnings # noqa: I001
1520

1621
import numpy as np

docs/source/_static/interrogate_badge.svg

Lines changed: 4 additions & 4 deletions
Loading

docs/source/api/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
skl_models
1313
experiments
1414
expt_diff_in_diff
15-
expt_instrumental_variable
16-
expt_prepostfit
1715
expt_prepostnegd
16+
expt_prepostfit
1817
expt_regression_discontinuity
1918
expt_regresion_kink
19+
expt_instrumental_variable
20+
expt_inverse_propensity_weighting
2021
```

0 commit comments

Comments
 (0)