stats

The stats collection provides common statistical operations — descriptive statistics and hypothesis tests — over tabular data. It is written in R, which has first-class, well-tested implementations of these methods in its base stats package, so the blocks are thin, dependency-light wrappers around functions statisticians already trust (summary, cor, t.test, aov, chisq.test, table).

Every block shares the same shape: a single data input (type: file, format: CSV) and a single result output (type: json). This means the blocks compose behind any source that produces a CSV — including data.read, fiadb.fullreport, or upstream sae/base blocks — and feed any downstream consumer that accepts JSON. All other configuration (column names, methods, test options) is passed as scalar args, never wired inputs.

Descriptive statistics:

Hypothesis tests:

All blocks in this collection declare network: false — they operate purely on data already produced elsewhere in the pipeline.

Blocks🔗

BlockKindDescription
stats.summarystandardPer-column descriptive statistics (n, mean, sd, min, quartiles, max, missing)
stats.frequencystandardOne-way frequency table, or a contingency table when by is set
stats.correlationstandardCorrelation matrix over numeric columns (pearson/spearman/kendall)
stats.t_teststandardOne-sample (vs mu) or two-sample/paired Student's t-test
stats.chisq_teststandardPearson's chi-squared test of independence between two categorical columns
stats.anovastandardOne-way analysis of variance of a numeric response across a grouping column

Installation🔗

spade install file:///path/to/blocks/stats