APA-7 reporting of psychological statistics results
Project description
psyreport
APA-7 reporting of results from psystats and psymetrics. Part of the ANOVA Methods family (psystats, psymetrics, psyreport).
Free and open (MIT). psyreport reads any psy result object and renders it as APA-7 text, a LaTeX table, or a Word (.docx) table — without importing the other packages (it dispatches on a shared result convention, so there is no circular dependency).
Install
pip install psyreport
What's inside
report(result) — an APA-7 formatted string. Follows APA number style (no
leading zero on bounded statistics, p < .001 thresholds, italic test
statistics spelled with their symbols).
to_latex(result, caption=, label=) — a LaTeX table environment for
table-bearing results; a commented APA sentence for inline-only results.
to_docx(result, path) — writes an APA-style Word document with the result's
table and note.
Example
from psymetrics import alpha
from psystats import table1, linreg
from psyreport import report, to_latex, to_docx
a = alpha(items)
print(report(a))
# -> "Cronbach's α = .87, 95% CI [.82, .91], based on 10 items (N = 240)."
print(report(linreg(df, "score", ["age", "condition"])))
# -> "age: b = 0.31, β = .28, p < .001." ...
to_docx(table1(df, group="condition"), "table1.docx") # Word table
print(to_latex(alpha(items), caption="Reliability", label="tab:alpha"))
Supported result kinds: alpha, riskratio, oddsratio, attributable_risk, ttest, anova, chisq, corr_matrix, freq, linreg, logreg, efa, cfa, describe, table1.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file psyreport-0.1.0.tar.gz.
File metadata
- Download URL: psyreport-0.1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
928877d4d3cebb87111010b050283bf3c0adfe3c017df1cda932d33436fdd4ce
|
|
| MD5 |
b8049fb783cf4ecb59f6f31bb7db0d41
|
|
| BLAKE2b-256 |
5e81401f33f0d0329fb3664ef669e798345b83896848712e5cb68753f0e1b93b
|
File details
Details for the file psyreport-0.1.0-py3-none-any.whl.
File metadata
- Download URL: psyreport-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f684166d0e2d4a6a73ab436a191c9d7a32cc6a698b828a123f01dff4fef20666
|
|
| MD5 |
194af9656b7ab202e2b4a9c647f1676d
|
|
| BLAKE2b-256 |
0c4c621711e1282c300b91d39d73c2514c9aba829288c3fe7bfa0aa021095ee2
|