Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

psyreport-0.1.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

psyreport-0.1.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file psyreport-0.1.1.tar.gz.

File metadata

  • Download URL: psyreport-0.1.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for psyreport-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b840c38a24fdd11fb713f4474f1d4c0de4c9a6821d2577535b388d375406519f
MD5 6a925b15eb2b683a00ddf7e8f3d91307
BLAKE2b-256 aa62eb2d9b6389095da3d10eecbbf607f729397bb9620ebf116241a1ec814a42

See more details on using hashes here.

Provenance

The following attestation bundles were made for psyreport-0.1.1.tar.gz:

Publisher: publish.yml on anovabr/anova-methods

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file psyreport-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: psyreport-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for psyreport-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 662f484cd8aff1a54bd9b53d75e582ed062a8f606e2e622b81776fbd0244255b
MD5 52d65e95b698630847ccd372c2bd2715
BLAKE2b-256 40b4f72dac45d2ab1c85ab18e8da4d8b6c733c173a41500215b782f792bb3095

See more details on using hashes here.

Provenance

The following attestation bundles were made for psyreport-0.1.1-py3-none-any.whl:

Publisher: publish.yml on anovabr/anova-methods

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page