This package facilitates and simplifies analyses of experimental data. Examples of functions include a function that plots sample means of groups in a factorial experimental design, a function that conducts robust regressions with bootstrapped samples, and a function that conducts mediation analyses.
You can install the released version of kim from CRAN with:
You can also install the development version from GitHub with:
Here are some examples of using this package.
library(kim)
# create a scatter plot
scatterplot(data = mtcars, x_var_name = "wt", y_var_name = "mpg")
# get descriptive statistics by group
desc_stats_by_group(
data = mtcars, var_for_stats = "mpg", grouping_vars = c("vs", "am"))
# plot histograms by group
histogram_by_group(data = mtcars, iv_name = "cyl", dv_name = "mpg")
# plot sample means of groups in a factorial experimental design
plot_group_means(data = mtcars, dv_name = "mpg", iv_name = "gear")
# conduct a two-way ANOVA
two_way_anova(
data = mtcars, dv_name = "mpg", iv_1_name = "vs", iv_2_name = "am")
# conduct a multiple regression analysis
multiple_regression(data = mtcars, formula = mpg ~ gear * cyl)
# conduct a robust regression analysis using bootstrapped samples
robust_regression(data = mtcars, formula = mpg ~ cyl * hp)
# conduct a mediation analysis
mediation_analysis(
data = mtcars, iv_name = "cyl", mediator_name = "disp", dv_name = "mpg")