kim0.5.431 package

A Toolkit for Behavioral Scientists

akaike_weights

Akaike Weights

assign_fn_parameters_as_vars

Assign function parameters as values

barplot_for_counts

Barplot for counts

binomial_test

Binomial test

bracket

Draw a bracket on a ggplot

capitalize

Capitalize a substring

change_var_names

Change variable names in a data set

check_modes

Check modes of objects

check_req_pkg

Check for required packages

chi_squared_test_pairwise

Chi-squared test, pairwise

chi_squared_test

Chi-squared test

ci_of_mean

Confidence Interval of the Mean of a Vector

clean_data_from_qualtrics

Clean data from Qualtrics

coefficent_of_variation

Coefficient of variation

cohen_d_borenstein

Calculate Cohen's d as illustrated by Borenstein et al. (2009, ISBN: 9...

cohen_d_for_one_sample

Calculate Cohen's d to accompany a one-sample t-test

cohen_d_from_cohen_textbook

Cohen's d from Jacob Cohen's textbook (1988)

cohen_d_over_n

Cohen's d as a function of sample size

cohen_d_to_r

Convert Cohen's d to r

cohen_d_torchiano

Calculate Cohen's d and its confidence interval using the package 'eff...

cohen_d

Calculate Cohen's d and its confidence interval using the package 'psy...

combine_data_across_cols

Combine data across columns

comma_sep_string_to_numbers

Convert a comma-separated string of numbers

compare_datasets

Compare data sets

compare_dependent_rs

Compare dependent correlations

compare_effect_sizes

Compare effect sizes

compare_groups

Compare groups

compare_independent_rs

Compare independent correlations

contingency_table

Contingency table

convert_cols_to_numeric

Convert columns to numeric

convert_to_excel_formula

Convert character to Excel formula

correlation_kim

Estimate the correlation between two variables

correlation_matrix

correlation matrix

cum_percent_plot

Cumulative percentage plot

desc_stats_by_group

Descriptive statistics by group

desc_stats

Descriptive statistics

detach_user_installed_pkgs

Detach all user-installed packages

duplicated_values

Duplicated values in a vector

excel_formula_convert

Excel formula, convert (to)

exit_from_parent_function

Exit from a Parent Function

factorial_anova_2_way

Factorial ANOVA 2-Way (Two-Way Factorial ANOVA)

find_duplicates

Find duplicated values in a vector

fisher_z_transform

Fisher's Z transformation

floodlight_2_by_continuous_logistic

Floodlight 2 by Continuous for a Logistic Regression

floodlight_2_by_continuous_mlm_logistic

Floodlight 2 by Continuous for a Multilevel Logistic Regression

floodlight_2_by_continuous

Floodlight 2 by Continuous

floodlight_for_contrasts

Floodlight Analyses for a Set of Contrasts

floodlight_multi_by_continuous

Floodlight Multicategorical by Continuous

forest_plot

Forest plot

geomean

Geometric mean

ggsave_quick

ggsave quick

histogram_by_group

Histogram by group

histogram_deprecated_1

Histogram

histogram_from_hist

Histogram from hist function

histogram_w_outlier_bins

Histogram with outlier bins

histogram

Histogram

holm_adjusted_p

Holm-adjusted p-values

id_across_datasets

ID across datasets

identical_all

Check whether all inputs are identical

install_all_dependencies

Install all dependencies for all functions

kurtosis

Kurtosis

lenu

lenu: Length of unique values

levene_test

Levene's test

log_odds_ratio_to_d

Convert log odds ratio to Cohen's d

log_odds_ratio

Log odds ratio

logistic_reg_w_interaction

Logistic regression with an interaction term

logistic_regression_table

Logistic regression table

logistic_regression

Logistic regression

loglinear_analysis

Loglinear analysis

mad_remove_outliers

Remove outliers using the MAD method

mann_whitney

Mann-Whitney U Test (Also called Wilcoxon Rank-Sum Test)

matrix_prep_dt

Prepare a two-column data.table that will be used to fill values in a ...

mean_center

Mean center

mediation_analysis

Mediation analysis

merge_data_table_list

Merge a list of data tables

merge_data_tables

Merge data tables

mixed_anova_2_way

Mixed ANOVA 2-Way (Two-Way Mixed ANOVA)

modes_of_objects

Find modes of objects

multiple_regression

Multiple regression

noncentrality_parameter

Find noncentrality parameter

odds_ratio

Odds ratio

order_rows_specifically_in_dt

Order rows specifically in a data table

outlier

Outlier

overlapping_interval

Find the overlapping interval of two ranges.

p0

Paste0

package_list_default

Packages - List the default packages

parallel_analysis

Parallel analysis

percentile_rank

Percentile rank

pivot_table

Pivot Table

plot_group_means

Plot group means

pm

Paste for message

population_variance

Population variance of a vector

prep

Prepare package(s) for use

pretty_round_p_value

Pretty round p-value

pretty_round_r

Pretty round r

print_loop_progress

print loop progress

proportion_of_values_in_vector

Proportion of given values in a vector

q_stat_test_homo_r

Q statistic for testing homogeneity of correlations

read_csv

Read a csv file

read_sole_csv

Read the sole csv file in the working directory

regex_match

Regular expression matches

rel_pos_of_value_in_vector

Find relative position of a value in a vector

rel_value_of_pos_in_vector

Find relative value of a position in a vector

remove_from_vector

Remove from a vector

remove_user_installed_pkgs

Remove all user installed packages

repeated_measures_anova

Repeated-Measures ANVOA

replace_values_in_dt

Replace values in a data table

robust_regression

Robust regression (bootstrapped regression)

round_flexibly

Round flexibly

scatterplot

Scatterplot

score_scale_items

Score scale items

se_of_mean

Standard error of the mean

se_of_percentage

Standard Error (SE) of a percentage

se_of_proportion

Standard Error (SE) of a proportion

setup_r_env

Set up R environment

setwd_to_active_doc

Set working directory to active document in RStudio

simple_effects_analysis

Simple Effects Analysis

simple_slopes_analysis_logistic

Simple slopes analysis with logistic regression analyses

simple_slopes_analysis

Simple slopes analysis

skewness

Skewness

spotlight_2_by_continuous

Spotlight 2 by Continuous

standardize

Standardize

standardized_regression

Standardized Regression

start_kim

Start kim

su

su: Sorted unique values

t_test_pairwise

t-tests, pairwise

tabulate_vector

Tabulate vector

tau_squared

Tau-squared (between-studies variance for meta analysis)

theme_kim

Theme Kim

top_median_or_bottom

Top, median, or bottom

tv

Tabulate vector

two_way_anova

Two-Way Factorial ANOVA

und

Undocumented functions

unload_user_installed_pkgs

Unload all user-installed packages

update_kim

Update the package 'kim'

var_of_log_odds_ratio_to_var_of_d

Convert variance of log odds ratio to variance of d

var_of_percentage

Variance of a percentage

var_of_proportion

Variance of a proportion

vlookup

Vlookup

weighted_mean_effect_size

Estimate the mean effect size in a meta analysis

weighted_mean_r

Weighted mean correlation

weighted_z

Weighted z

wilcoxon_rank_sum_test

Wilcoxon Rank-Sum Test (Also called the Mann-Whitney U Test)

write_csv

Write to a csv file

z_score

z score

z_to_r_transform

Z to r transformation (Inverse of Fisher's Z transformation)

A collection of functions for analyzing data typically collected or used by behavioral scientists. Examples of the functions include a function that compares groups in a factorial experimental design, a function that conducts two-way analysis of variance (ANOVA), and a function that cleans a data set generated by Qualtrics surveys. Some of the functions will require installing additional package(s). Such packages and other references are cited within the section describing the relevant functions. Many functions in this package rely heavily on these two popular R packages: Dowle et al. (2021) <https://CRAN.R-project.org/package=data.table>. Wickham et al. (2021) <https://CRAN.R-project.org/package=ggplot2>.

  • Maintainer: Jin Kim
  • License: GPL-3
  • Last published: 2024-10-01