compare_dependent_groups: Compare two dependent groups

Description Usage Arguments Examples

View source: R/compare_dependent_groups.R

Description

compare_dependent_groups provides numerous descriptive estimators and bootstrap confidence intervals for comparison between paired pre and post. compare_dependent_groups function is a "wrapper" for bmbstats function.

Usage

1
2
3
4
5
6
7
8
9
compare_dependent_groups(
  pre,
  post,
  SESOI_lower = SESOI_lower_dependent_func,
  SESOI_upper = SESOI_upper_dependent_func,
  estimator_function = dependent_groups_estimators,
  control = model_control(),
  na.rm = FALSE
)

Arguments

pre

Numeric vector

post

Numeric vector

SESOI_lower

Lower smallest effect size of interest threshold

SESOI_upper

Upper smallest effect size of interest threshold

estimator_function

Function that takes pre, post, and na.rm parameters and return named numeric vector with parameter estimates. Default is dependent_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("bench_press_data")
pre <- bench_press_data$`Pre-test`
post <- bench_press_data$`Post-test`
compare_dependent_groups(pre, post, SESOI_lower = -5, SESOI_upper = 5)

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