compare_independent_groups: Compare two independent groups

Description Usage Arguments Examples

View source: R/compare_independent_groups.R

Description

compare_independent_groups provides numerous descriptive estimators and bootstrap confidence intervals for comparison between group_a and group_b. compare_independent_groups function is a "wrapper" for bmbstats function.

Usage

1
2
3
4
5
6
7
8
9
compare_independent_groups(
  group_a,
  group_b,
  SESOI_lower = SESOI_lower_independent_func,
  SESOI_upper = SESOI_upper_independent_func,
  estimator_function = independent_groups_estimators,
  control = model_control(),
  na.rm = FALSE
)

Arguments

group_a

Numeric vector. This group represents baseline/control, observed variable, Pre-test in the paired design, or "practical" measure

group_b

Numeric vector. This group represents experimental, predicted variable, Post-test in the paired design, or "criterion" measure

SESOI_lower

Lower smallest effect size of interest threshold

SESOI_upper

Upper smallest effect size of interest threshold

estimator_function

Function that takes group_a, group_b, and na.rm parameters and return named numeric vector with parameter estimates. Default is independent_groups_estimators. User can write their own function with needed estimators for which bootstrap confidence intervals are needed

control

Control object returned from model_control function. Use boot_type, boot_samples, boot_strata to setup bootstrap.

na.rm

Should NAs be removed? Default is FALSE

Examples

1
2
3
4
data("height_data")
group_a <- height_data$Height[height_data$Gender == "Female"]
group_b <- height_data$Height[height_data$Gender == "Male"]
compare_independent_groups(group_a, group_b, SESOI_lower = -2.5, SESOI_upper = 2.5)

mladenjovanovic/bmbstats documentation built on Aug. 5, 2020, 4:20 p.m.