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.9.0.tar.gz
Keng_2026.9.0.zip(r-4.7-any)Keng_2026.9.0.zip(r-4.6-any)Keng_2026.9.0.zip(r-4.5-any)
Keng_2026.9.0.tgz(r-4.6-any)Keng_2026.9.0.tgz(r-4.5-any)
Keng_2026.9.0.tar.gz(r-4.7-any)Keng_2026.9.0.tar.gz(r-4.6-any)
Keng_2026.9.0.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.87 score 21 scripts 395 downloads 13 exports 0 dependencies
Last updated from:81801c6ee6. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 130 | ||
| source / vignettes | OK | 165 | ||
| linux-release | OK | 120 | ||
| macos-release | OK | 162 | ||
| macos-oldrel | OK | 184 | ||
| windows-devel | OK | 82 | ||
| windows-release | OK | 81 | ||
| windows-oldrel | OK | 81 | ||
| wasm-release | OK | 100 |
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