Knock Errors Off Nice Guesses
Overview
Miscellaneous functions and data used in psychological research and teaching. Keng currently has four built-in datasets, and could (1) scale a vector; (2) divide a vector into three groups, (3) compute the cut-off values of Pearson's r with known sample size; (4) test the significance and compute the post-hoc power for Pearson's r with known sample size; (5) conduct a priori power analysis and plan the sample size for Pearson's r; (6) compare lm()'s fitted outputs using R-squared, f_squared, post-hoc power, and PRE (Proportional Reduction in Error, also called partial R-squared or partial Eta-squared); (7) calculate PRE from partial correlation, Cohen's f, or f_squared; (8) conduct a priori power analysis and plan the sample size for one or a set of predictors in regression analysis; (9) conduct post-hoc power analysis for one or a set of predictors in regression analysis with known sample size; (10) randomly pick numbers for Chinese Super Lotto and Double Color Balls; (11) assess course objective achievement in Outcome-Based Education.
- New data has been added.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 23
- Examples that run
- 100%15 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 43%
- assessCOA HTML
- commonSampleSizes HTML
- PartialRegression HTML
- PlanSampleSize HTML
- PRE HTML
Downloads
Repository
Releases over time
Issues over time
Commits over time
5 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/qyaozh/keng on 2026-10-21.
Dependencies
Installing Keng adds no packages beyond those that come with R.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 2026.9.0Latest
- RR 4.6.0 released · 2026-04-24
- 2026.3.19
- 2025.10.8
- 2025.9.1
- 2025.8.16
- RR 4.5.0 released · 2025-04-11
- 2024.12.15
- 2024.11.25
- 2024.11.17
- 2024.11.02
- 2024.10.162024-10-17
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-10-17
- Total releases
- 10 / 2 yrs
- License
- CC BY 4.0
- Minimum R
- ≥ 3.5
- Bundled data
- 118 KB / 8 files
- Download size
- 245 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("Keng")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.