Skip to content

Commit 84397cb

Browse files
committed
wip
1 parent ba10c35 commit 84397cb

File tree

4 files changed

+555
-2
lines changed

4 files changed

+555
-2
lines changed

_quarto.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
####### README #######
2+
#
3+
# To create the qmd files, run the following command in the terminal:
4+
# > quartodoc build
5+
# the result will be in ./reference
6+
# modify the current file to change the included functions and the layout
7+
# finally, run the following command to preview the website:
8+
# > quarto preview
9+
10+
11+
project:
12+
type: website
13+
14+
# tell quarto to read the generated sidebar
15+
metadata-files:
16+
- _sidebar.yml
17+
18+
19+
quartodoc:
20+
# the name used to import the package you want to create reference docs for
21+
package: marginaleffects
22+
style: "pkgdown"
23+
# write sidebar data to this file
24+
sidebar: _sidebar.yml
25+
26+
sections:
27+
- title: Some functions
28+
desc: Functions to inspect docstrings.
29+
contents:
30+
# the functions being documented in the package.
31+
# you can refer to anything: class methods, modules, etc..
32+
# - avg_predictions
33+
- predictions
34+
- avg_predictions
35+
- comparisons
36+
- slopes
37+
- hypotheses
38+
- datagrid
39+
- plot_predictions
40+
- plot_comparisons
41+
- plot_slopes
42+
- model_statsmodels
43+
- model_sklearn
44+
- utils

marginaleffects/predictions.py

+3
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ def avg_predictions(
192192
transform=None,
193193
wts=None,
194194
):
195+
"""
196+
Predict average outcomes (TO DO)
197+
"""
195198
if callable(newdata):
196199
newdata = newdata(model)
197200

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ dev-dependencies = [
3333
"pytest >=8.1.1,<9",
3434
"pytest-xdist >=3.6.1",
3535
"ruff>=0.6.4",
36+
"quartodoc"
3637
]
3738

3839

0 commit comments

Comments
 (0)