Rendered from
PRE.Rmdusingknitr::rmarkdown
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.
Authors:Qingyao Zhang [aut, cre]
Keng_2026.3.19.9000.tar.gz
Keng_2026.3.19.9000.zip(r-4.7)Keng_2026.3.19.9000.zip(r-4.6)Keng_2026.3.19.9000.zip(r-4.5)
Keng_2026.3.19.9000.tgz(r-4.6-any)Keng_2026.3.19.9000.tgz(r-4.5-any)
Keng_2026.3.19.9000.tar.gz(r-4.7-any)Keng_2026.3.19.9000.tar.gz(r-4.6-any)
Keng_2026.3.19.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
Keng/json (API)
| # Install 'Keng' in R: |
| install.packages('Keng', repos = c('https://qyaozh.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/qyaozh/keng/issues
5.97 score 22 scripts 607 downloads 13 exports 0 dependencies
Last updated from:be5e392355. Checks:7 WARNING, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | WARNING | 147 | ||
| source / vignettes | OK | 201 | ||
| linux-release-x86_64 | WARNING | 133 | ||
| macos-release-arm64 | WARNING | 85 | ||
| macos-oldrel-arm64 | WARNING | 96 | ||
| windows-devel | WARNING | 91 | ||
| windows-release | WARNING | 77 | ||
| windows-oldrel | WARNING | 90 | ||
| wasm-release | OK | 148 |
Exports:assess_coacalc_PREcompare_lmcut_rdividepick_dcbpick_slpower_lmpower_rpowered_lmpowered_rScaletest_r
Dependencies:
PRE.Rmdusingknitr::rmarkdownLast update: 2026-04-13
Started: 2024-11-06
PartialRegression.Rmdusingknitr::rmarkdownLast update: 2026-04-12
Started: 2024-11-05
PlanSampleSize.Rmdusingknitr::rmarkdownLast update: 2026-04-12
Started: 2024-11-24
assessCOA.Rmdusingknitr::rmarkdownLast update: 2025-10-08
Started: 2025-08-31
commonSampleSizes.Rmdusingknitr::rmarkdownLast update: 2025-08-31
Started: 2024-12-24
