Skip to content

Commit

Permalink
fix up LaTeX in docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
drbenvincent committed Oct 9, 2024
1 parent 9f5c23a commit 553cf53
Showing 1 changed file with 12 additions and 23 deletions.
35 changes: 12 additions & 23 deletions causalpy/pymc_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,10 @@ class LinearRegression(PyMCModel):
Defines the PyMC model
.. math::
\beta &\sim \mathrm{Normal}(0, 50)
\sigma &\sim \mathrm{HalfNormal}(1)
\mu &= X * \beta
y &\sim \mathrm{Normal}(\mu, \sigma)
\beta &\sim \mathrm{Normal}(0, 50) \\
\sigma &\sim \mathrm{HalfNormal}(1) \\
\mu &= X \cdot \beta \\
y &\sim \mathrm{Normal}(\mu, \sigma) \\
Example
--------
Expand Down Expand Up @@ -236,14 +233,10 @@ class WeightedSumFitter(PyMCModel):
Defines the PyMC model:
.. math::
\sigma &\sim \mathrm{HalfNormal}(1)
\beta &\sim \mathrm{Dirichlet}(1,...,1)
\mu &= X * \beta
y &\sim \mathrm{Normal}(\mu, \sigma)
\sigma &\sim \mathrm{HalfNormal}(1) \\
\beta &\sim \mathrm{Dirichlet}(1,...,1) \\
\mu &= X \cdot \beta \\
y &\sim \mathrm{Normal}(\mu, \sigma) \\
Example
--------
Expand Down Expand Up @@ -433,14 +426,10 @@ class PropensityScore(PyMCModel):
Defines the PyMC model
.. math::
\beta &\sim \mathrm{Normal}(0, 1)
\sigma &\sim \mathrm{HalfNormal}(1)
\mu &= X * \beta
p &= logit^{-1}(mu)
\beta &\sim \mathrm{Normal}(0, 1) \\
\sigma &\sim \mathrm{HalfNormal}(1) \\
\mu &= X \cdot \beta \\
p &= \text{logit}^{-1}(\mu) \\
t &\sim \mathrm{Bernoulli}(p)
Example
Expand Down

0 comments on commit 553cf53

Please sign in to comment.