Function that provides a list of estimators for linear relationship between predictor and outcome. User is free to define his own list of estimators. Used in compare_dependent_groups

relationship_lm_estimators(
  predictor,
  outcome,
  SESOI_lower = 0,
  SESOI_upper = 0,
  na.rm = FALSE
)

Arguments

predictor

Numeric vector

outcome

Vector

SESOI_lower

Lower smallest effect size of interest threshold

SESOI_upper

Upper smallest effect size of interest threshold

na.rm

Should NAs be removed? Default is FALSE

Value

Named numeric vector with estimators

Examples

data("yoyo_mas_data") predictor <- yoyo_mas_data$YoYoIR1 outcome <- yoyo_mas_data$MAS relationship_lm_estimators(predictor, outcome, SESOI_lower = -0.5, SESOI_upper = 0.5)
#> SESOI lower SESOI upper SESOI range Intercept Slope RSE #> -0.500000000 0.500000000 1.000000000 13.159948349 0.001402145 0.218737182 #> Pearson's r R Squared SESOI to RSE PPER #> 0.857917432 0.736022320 4.571696467 0.970243050