diff --git a/docs/vignettes/more_advanced_models.md b/docs/vignettes/more_advanced_models.md index f636a7b..f526304 100644 --- a/docs/vignettes/more_advanced_models.md +++ b/docs/vignettes/more_advanced_models.md @@ -63,12 +63,21 @@ my_analysis.bootstrap() Now that the underlying bootstrap structure has been in place, we can simply continue as we would in simpler models- fit, survival, plot, collect, and dump. +You can recover all results through the collection, and interact with them as you would normally in Python; however, to dump to md or pdf you may require the optional depedencies which interact with these file formats. + +These can be easily installed through the `output` optional dependencies with pySEQTarget. + +```shell +pip install pySEQTarget[output] +``` + ```python my_analysis.fit() my_analysis.survival() my_analysis.plot() my_output = my_analysis.collect() +# Requires tabulate installation my_output.to_md() ``` diff --git a/pyproject.toml b/pyproject.toml index 0efb45c..fa22221 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "pySEQTarget" -version = "0.10.1" +version = "0.10.2" description = "Sequentially Nested Target Trial Emulation" readme = "README.md" license = {text = "MIT"} @@ -42,6 +42,13 @@ dependencies = [ "lifelines" ] +[project.optional-dependencies] +output = [ + "markdown", + "weasyprint", + "tabulate" +] + [project.urls] Homepage = "https://github.com/CausalInference/pySEQTarget" Repository = "https://github.com/CausalInference/pySEQTarget" @@ -65,12 +72,6 @@ dev = [ "sphinx-autodoc-typehints", ] -output = [ - "markdown", - "weasyprint", - "tabulate" -] - [tool.setuptools.packages.find] where = ["."] include = ["pySEQTarget*"]