Skip to content

Commit 12aa0ad

Browse files
authored
make a long equation into two lines (#931)
1 parent 5a67883 commit 12aa0ad

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/notebooks/negative_binomial.ipynb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,10 @@
554554
"### Model 2\n",
555555
"\n",
556556
"$$\n",
557-
"\\log(\\mathbb{E}[Y_i]) = \\beta_1 \\text{Academic}_i + \\beta_2 \\text{General}_i + \\beta_3 \\text{Vocational}_i + \\beta_4 \\text{Math\\_std}_i\n",
558-
" + \\beta_5 \\text{General}_i \\cdot \\text{Math\\_std}_i + \\beta_6 \\text{Vocational}_i \\cdot \\text{Math\\_std}_i\n",
557+
"\\begin{aligned}\n",
558+
"\\log(\\mathbb{E}[Y_i]) &= \\beta_1 \\text{Academic}_i + \\beta_2 \\text{General}_i + \\beta_3 \\text{Vocational}_i + \\beta_4 \\text{Math\\_std}_i + \\\\\n",
559+
" & \\beta_5 \\text{General}_i \\cdot \\text{Math\\_std}_i + \\beta_6 \\text{Vocational}_i \\cdot \\text{Math\\_std}_i\n",
560+
"\\end{aligned}\n",
559561
"$$\n",
560562
"\n",
561563
"In both cases we have the following dummy variables\n",
@@ -1188,9 +1190,9 @@
11881190
],
11891191
"metadata": {
11901192
"kernelspec": {
1191-
"display_name": "dev",
1193+
"display_name": "Python [conda env:base] *",
11921194
"language": "python",
1193-
"name": "python3"
1195+
"name": "conda-base-py"
11941196
},
11951197
"language_info": {
11961198
"codemirror_mode": {
@@ -1202,7 +1204,7 @@
12021204
"name": "python",
12031205
"nbconvert_exporter": "python",
12041206
"pygments_lexer": "ipython3",
1205-
"version": "3.13.7"
1207+
"version": "3.11.5"
12061208
}
12071209
},
12081210
"nbformat": 4,

0 commit comments

Comments
 (0)