Package: Keng Title: Knock Errors Off Nice Guesses Version: 2026.3.19.9000 Authors@R: person( given = "Qingyao", family = "Zhang", email = "qingyaozhang@outlook.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-6891-5982")) Description: 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. License: CC BY 4.0 Language: en-US Encoding: UTF-8 Roxygen: list(markdown = TRUE) Imports: stats Suggests: ggplot2, knitr, rmarkdown, car, effectsize, tidyr, testthat (>= 3.0.0) Config/testthat/edition: 3 URL: https://github.com/qyaozh/Keng BugReports: https://github.com/qyaozh/Keng/issues Depends: R (>= 3.5) LazyData: true VignetteBuilder: knitr Config/roxygen2/version: 8.0.0 Repository: https://qyaozh.r-universe.dev Date/Publication: 2026-06-24 01:38:03 UTC RemoteUrl: https://github.com/qyaozh/keng RemoteRef: HEAD RemoteSha: be5e392355433c2fef473829d1114f2e736a0099 NeedsCompilation: no Packaged: 2026-06-24 03:10:49 UTC; root Author: Qingyao Zhang [aut, cre] (ORCID: ) Maintainer: Qingyao Zhang