Skip to content

Commit

Permalink
docs: some minor corrections in docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
nicrie committed Aug 22, 2022
1 parent 0f9c32e commit 75eed31
Show file tree
Hide file tree
Showing 12 changed files with 518 additions and 14 deletions.
Binary file modified docs/auto_examples/2cross/images/sphx_glr_plot_mca_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions docs/auto_examples/2cross/plot_mca.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,24 @@
"singular_vectors = mca.singular_vectors()\npcs = mca.pcs()\nhom_pats, pvals_hom = mca.homogeneous_patterns()\nhet_pats, pvals_het = mca.heterogeneous_patterns()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"When two fields are expected, the output of the above methods is a list of\nlength 2, with the first and second entry containing the relevant object for\n``X`` and ``Y``. For example, the p-values obtained from the two-sided t-test\nfor the homogeneous patterns of ``X`` are:\n\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"pvals_hom[0]"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
8 changes: 8 additions & 0 deletions docs/auto_examples/2cross/plot_mca.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@
hom_pats, pvals_hom = mca.homogeneous_patterns()
het_pats, pvals_het = mca.heterogeneous_patterns()

#%%
# When two fields are expected, the output of the above methods is a list of
# length 2, with the first and second entry containing the relevant object for
# ``X`` and ``Y``. For example, the p-values obtained from the two-sided t-test
# for the homogeneous patterns of ``X`` are:

pvals_hom[0]

#%%
# Create a mask to identifiy where p-values are below 0.05

Expand Down
2 changes: 1 addition & 1 deletion docs/auto_examples/2cross/plot_mca.py.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
91ab56bff33c723e4b800b87cc9251c7
99ed52e4350fe1ce0b6e47896a44d3c3
Loading

0 comments on commit 75eed31

Please sign in to comment.