Package: regrrr 0.1.3

Rui K. Yang

regrrr: Toolkit for Compiling, (Post-Hoc) Testing, and Plotting Regression Results

Compiling regression results into a publishable format, conducting post-hoc hypothesis testing, and plotting moderating effects (the effect of X on Y becomes stronger/weaker as Z increases).

Authors:Rui K. Yang [aut, cre], Luyao Peng [aut]

regrrr_0.1.3.tar.gz
regrrr_0.1.3.zip(r-4.5)regrrr_0.1.3.zip(r-4.4)regrrr_0.1.3.zip(r-4.3)
regrrr_0.1.3.tgz(r-4.4-any)regrrr_0.1.3.tgz(r-4.3-any)
regrrr_0.1.3.tar.gz(r-4.5-noble)regrrr_0.1.3.tar.gz(r-4.4-noble)
regrrr_0.1.3.tgz(r-4.4-emscripten)regrrr_0.1.3.tgz(r-4.3-emscripten)
regrrr.pdf |regrrr.html
regrrr/json (API)
NEWS

# Install 'regrrr' in R:
install.packages('regrrr', repos = c('https://rkzyang.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/rkzyang/regrrr/issues

On CRAN:

3.32 score 2 stars 21 scripts 165 downloads 13 exports 46 dependencies

Last updated 3 years agofrom:ac3451182f. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 05 2024
R-4.5-winOKNov 05 2024
R-4.5-linuxOKNov 05 2024
R-4.4-winOKNov 05 2024
R-4.4-macOKNov 05 2024
R-4.3-winOKNov 05 2024
R-4.3-macOKNov 05 2024

Exports:add.n.radd.pradd.sigcheck_corcheck_na_incheck_vifcombine_long_tabcompare_modelscor.tableplot_effecttest_coef_equalitytest_tilted_slopesto_long_tab

Dependencies:clicolorspacecpp11DEoptimRdplyrfansifarvergenericsggplot2gluegtableinsightisobandlabelinglatticelifecyclelsplinemagrittrMASSMatrixmgcvMuMInmunsellnlmepillarpkgconfigpurrrR6rasterRColorBrewerRcpprlangrobustbasescalesspstringistringrterratibbletidyrtidyselectusdmutf8vctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Add row numbers to regression result data.frameadd.n.r
Add approximate p-value based on t score or z score, when sample size is largeadd.pr
Add significance level marks to the regression resultadd.sig
quickly check correlation matrix, or the correlation between a particular X and all other vars could be useful for looking for relevant instrumentcheck_cor
quickly check the proportion of NAs in each columns of a dataframecheck_na_in
quickly check the vifs in a regression model; for checking multi-collinearitycheck_vif
Combine regression results from different models by columnscombine_long_tab
Compare regression models, which is compatible with the reg.table output # updated 9/13/2018 #compare_models
make the correlation matrix from the data.frame used in regressioncor.table
load multiple packagesload.pkgs
plotting the marginal effect of X on Y, with or without one or multiple interaction termsplot_effect
regrrr: a toolkit for compiling regression resultsregrrr-package regrrr
Scale a vector into the 0-1 scalescale_01
testing equality of two coefficients (difference between coefficients of regressors), a Wald test note: if v is not alternatively specified, use car::linearHypothesis(lm_model, "X1 = X2")test_coef_equality
significance of regression slope (the marginal effect) under moderation testing restriction: the sig. of beta_x under the moderation of z1, with or without additional interaction terms (z2, z3, etc.)test_tilted_slopes
Convert the regression result to the long format: the standard errors are in parentheses and beneath the betasto_long_tab