Menu

📰
0

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

DEV Community: r·Alex Towell·about 1 month ago
#1cjzxdJi
#dev#class#code#hypothesize#strong#article
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. hypothesize standardizes this: any package can wrap its tests in a consistent interface, making it easier to compose statistical workflows.…

Continue reading — create a free account

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

Read More