Package: Keng 2026.3.19.9000

Keng: Knock Errors Off Nice Guesses

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
card.svg |card.png
Keng/json (API)
NEWS

# 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

Datasets:
  • depress - Three-wave data from the D research
  • depress1 - The 1st wave data from the D research
  • depress2 - The 2nd wave data from the D research
  • depress3 - The 3rd wave data from the D research
  • well - Three-wave data from the W research
  • well1 - The 1st wave data from the W research
  • well2 - The 2nd wave data from the W research
  • well3 - The 3rd wave data from the W research

On CRAN:

Conda:

5.83 score 17 scripts 528 downloads 13 exports 0 dependencies

Last updated from:1cb1220e97. Checks:7 WARNING, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64WARNING164
source / vignettesOK194
linux-release-x86_64WARNING133
macos-release-arm64WARNING116
macos-oldrel-arm64WARNING132
windows-develWARNING80
windows-releaseWARNING77
windows-oldrelWARNING88
wasm-releaseOK113

Exports:assess_coacalc_PREcompare_lmcut_rdividepick_dcbpick_slpower_lmpower_rpowered_lmpowered_rScaletest_r

Dependencies:

assessCOA

Rendered fromassessCOA.Rmdusingknitr::rmarkdownon May 24 2026.

Last update: 2025-10-08
Started: 2025-08-31

Common Sample Sizes

Rendered fromcommonSampleSizes.Rmdusingknitr::rmarkdownon May 24 2026.

Last update: 2025-08-31
Started: 2024-12-24

Partial Regression

Rendered fromPartialRegression.Rmdusingknitr::rmarkdownon May 24 2026.

Last update: 2026-04-12
Started: 2024-11-05

Plan Sample Size

Rendered fromPlanSampleSize.Rmdusingknitr::rmarkdownon May 24 2026.

Last update: 2026-04-12
Started: 2024-11-24

PRE

Rendered fromPRE.Rmdusingknitr::rmarkdownon May 24 2026.

Last update: 2026-04-13
Started: 2024-11-06