Package: Keng 2025.02.05

Keng: Knock Errors Off Nice Guesses

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.

Authors:Qingyao Zhang [aut, cre]

Keng_2025.02.05.tar.gz
Keng_2025.02.05.zip(r-4.5)Keng_2025.02.05.zip(r-4.4)Keng_2025.02.05.zip(r-4.3)
Keng_2025.02.05.tgz(r-4.5-any)Keng_2025.02.05.tgz(r-4.4-any)Keng_2025.02.05.tgz(r-4.3-any)
Keng_2025.02.05.tar.gz(r-4.5-noble)Keng_2025.02.05.tar.gz(r-4.4-noble)
Keng_2025.02.05.tgz(r-4.4-emscripten)Keng_2025.02.05.tgz(r-4.3-emscripten)
Keng.pdf |Keng.html
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:

On CRAN:

5.42 score 11 scripts 215 downloads 7 exports 0 dependencies

Last updated 15 days agofrom:42810564be. Checks:8 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 08 2025
R-4.5-winOKFeb 08 2025
R-4.5-macOKFeb 08 2025
R-4.5-linuxOKFeb 08 2025
R-4.4-winOKFeb 08 2025
R-4.4-macOKFeb 08 2025
R-4.3-winOKFeb 08 2025
R-4.3-macOKFeb 08 2025

Exports:calc_PREcompare_lmcut_rpower_lmpower_rScaletest_r

Dependencies:

Common Sample Sizes

Rendered fromcommonSampleSizes.Rmdusingknitr::rmarkdownon Feb 08 2025.

Last update: 2024-12-25
Started: 2024-12-24

Partial Regression

Rendered fromPartialRegression.Rmdusingknitr::rmarkdownon Feb 08 2025.

Last update: 2024-11-21
Started: 2024-11-05

Plan Sample Size

Rendered fromPlanSampleSize.Rmdusingknitr::rmarkdownon Feb 08 2025.

Last update: 2024-12-01
Started: 2024-11-24

PRE

Rendered fromPRE.Rmdusingknitr::rmarkdownon Feb 08 2025.

Last update: 2024-11-24
Started: 2024-11-06