Skip to content

Commit cc61f13

Browse files
committed
Fix MixedModelMatrices doctsrings
1 parent 0ade10f commit cc61f13

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

causalpy/formula.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ class MixedModelMatrices:
110110
111111
Examples
112112
--------
113+
>>> data = pd.DataFrame(
114+
... {
115+
... "y": [0.1, -0.2, 0.3, 0.0],
116+
... "x1": [1.0, 0.0, 1.0, 0.5],
117+
... "store_id": ["s1", "s1", "s2", "s2"],
118+
... }
119+
... )
113120
>>> mm = parse_formula("y ~ 1 + x1 + (1 + x1 | store_id)", data)
114121
>>> mm.lhs.shape[0] == mm.rhs.shape[0] == mm.Z.shape[0]
115122
True

0 commit comments

Comments
 (0)