Miscellaneous functions and data used in psychological research and teaching. Keng currently has a built-in dataset depress, and could (1) scale a vector; (2) compute the cut-off values of Pearson's r with known sample size; (3) test the significance and compute the post-hoc power for Pearson's r with known sample size; (4) conduct a priori power analysis and plan the sample size for Pearson's r; (5) 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); (6) calculate PRE from partial correlation, Cohen's f, or f_squared; (7) conduct a priori power analysis and plan the sample size for one or a set of predictors in regression analysis; (8) conduct post-hoc power analysis for one or a set of predictors in regression analysis with known sample size; (9) randomly pick numbers for Chinese Super Lotto and Double Color Balls; (10) assess course objective achievement in Outcome-Based Education.
| Version: | 2025.10.8 |
| Depends: | R (≥ 2.10) |
| Imports: | stats |
| Suggests: | ggplot2, knitr, rmarkdown, car, effectsize, tidyr, testthat (≥ 3.0.0) |
| Published: | 2025-10-09 |
| DOI: | 10.32614/CRAN.package.Keng |
| Author: | Qingyao Zhang |
| Maintainer: | Qingyao Zhang <qingyaozhang at outlook.com> |
| BugReports: | https://github.com/qyaozh/Keng/issues |
| License: | CC BY 4.0 |
| URL: | https://github.com/qyaozh/Keng |
| NeedsCompilation: | no |
| Language: | en-US |
| Materials: | README, NEWS |
| CRAN checks: | Keng results |
| Reference manual: | Keng.html , Keng.pdf |
| Vignettes: |
PRE (source, R code) assessCOA (source, R code) commonSampleSizes (source, R code) PartialRegression (source, R code) PlanSampleSize (source, R code) |
| Package source: | Keng_2025.10.8.tar.gz |
| Windows binaries: | r-devel: Keng_2025.10.8.zip, r-release: Keng_2025.10.8.zip, r-oldrel: Keng_2025.10.8.zip |
| macOS binaries: | r-release (arm64): Keng_2025.10.8.tgz, r-oldrel (arm64): Keng_2025.10.8.tgz, r-release (x86_64): Keng_2025.10.8.tgz, r-oldrel (x86_64): Keng_2025.10.8.tgz |
| Old sources: | Keng archive |
Please use the canonical form https://CRAN.R-project.org/package=Keng to link to this page.