Skip to contents
-
Alpha()
- Reliability analysis (Cronbach's \(\alpha\) and McDonald's \(\omega\)).
-
CFA()
- Confirmatory Factor Analysis (CFA).
-
Corr()
- Correlation analysis.
-
Describe()
- Descriptive statistics.
-
EFA()
PCA()
- Principal Component Analysis (PCA) and Exploratory Factor analysis (EFA).
-
EMMEANS()
- Simple-effect analysis and post-hoc multiple comparison.
-
Freq()
- Frequency statistics.
-
GLM_summary()
- Tidy report of GLM (
lm
and glm
models).
-
HLM_ICC_rWG()
- Tidy report of HLM indices: ICC(1), ICC(2), and rWG/rWG(J).
-
HLM_summary()
- Tidy report of HLM (
lmer
and glmer
models).
-
LOOKUP()
- Search, match, and look up values (like Excel's functions
INDEX + MATCH
).
-
MANOVA()
- Multi-factor ANOVA.
-
PROCESS()
- PROCESS for mediation and/or moderation analyses.
-
Print()
Glue()
- Print strings with rich formats and colors.
-
RECODE()
- Recode a variable.
-
RESCALE()
- Rescale a variable (e.g., from 5-point to 7-point).
-
RGB()
- A simple extension of
rgb()
.
-
Run()
- Run code parsed from text.
-
TTEST()
- One-sample, independent-samples, and paired-samples t-test.
-
add()
added()
- Create, modify, and delete variables.
-
bruceR
bruceR-package
- bruceR: BRoadly Useful Convenient and Efficient R functions
-
cc()
- Split up a string (with separators) into a character vector.
-
ccf_plot()
- Cross-correlation analysis.
-
cor_diff()
- Test the difference between two correlations.
-
cor_multilevel()
- Multilevel correlations (within-level and between-level).
-
dtime()
- Timer (compute time difference).
-
export()
- Export data to a file (TXT, CSV, Excel, SPSS, Stata, ...) or clipboard.
-
formatF()
- Format numeric values.
-
formatN()
- Format "1234" to "1,234".
-
formula_expand()
- Expand all interaction terms in a formula.
-
formula_paste()
- Paste a formula into a string.
-
grand_mean_center()
- Grand-mean centering.
-
granger_causality()
- Granger causality test (multivariate).
-
granger_test()
- Granger causality test (bivariate).
-
`%allin%`
- A simple extension of
%in%
.
-
`%anyin%`
- A simple extension of
%in%
.
-
COUNT()
MODE()
SUM()
.sum()
MEAN()
.mean()
STD()
CONSEC()
- Multivariate computation.
-
`%nonein%`
- A simple extension of
%in%
.
-
`%notin%`
- The opposite of
%in%
.
-
`%partin%`
- A simple extension of
%in%
.
-
`%^%`
- Paste strings together.
-
group_mean_center()
- Group-mean centering.
-
import()
- Import data from a file (TXT, CSV, Excel, SPSS, Stata, ...) or clipboard.
-
lavaan_summary()
- Tidy report of lavaan model.
-
med_summary()
- Tidy report of mediation analysis.
-
model_summary()
- Tidy report of regression models.
-
p()
p.z()
p.t()
p.f()
p.r()
p.chi2()
- Compute p value.
-
pkg_depend()
- Check dependencies of R packages.
-
pkg_install_suggested()
- Install suggested R packages.
-
print_table()
- Print a three-line table (to R Console and Microsoft Word).
-
regress()
- Regression analysis.
-
rep_char()
- Repeat a character string for many times and paste them up.
-
scaler()
- Min-max scaling (min-max normalization).
-
set.wd()
set_wd()
- Set working directory to the path of currently opened file.
-
show_colors()
- Show colors.
-
theme_bruce()
- A nice
ggplot2
theme that enables Markdown/HTML rich text.