Menu

1 / 2

hypothesize: My R Package for Hypothesis Testing is Now on CRAN

DEV Community·Alex Towell·7 months ago
#1cjzxdJi
Reading 0:00
15s threshold

I'm pleased to announce that hypothesize is now available on CRAN , the official R package repository.

What is hypothesize?

hypothesize provides a consistent API for hypothesis testing in R. It defines generic methods that any hypothesis test can implement:

pval() - Extract the p-value

test_stat() - Get the test statistic

dof() - Retrieve degrees of freedom

is_significant_at() - Check significance at a given level

The package includes implementations for two common tests:

Likelihood Ratio Test (LRT) - For comparing nested models

Wald Test - For testing parameter estimates

Why a Consistent API?

When building statistical libraries, I found myself repeatedly implementing ad-hoc hypothesis test structures.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.