meanci.r: mean and ci to r

meanci.rR Documentation

mean and ci to r

Description

means and confidence interval of two groups to correlation coefficient

Usage

meanci.r(
  m1,
  m2,
  cil1,
  ciu1,
  cil2,
  ciu2,
  n1,
  n2,
  k,
  result = c("sediff", "cil", "ciu", "marge")
)

Arguments

m1

mean of group 1

m2

mean of group 2

cil1

lower bound of 95 confidence interval

ciu1

upper bound of 95 confidence interval

cil2

lower bound of 95 confidence interval

ciu2

upper bound of 95 confidence interval

n1

cell size of group 1

n2

cell size of group 2

k

total number of predictors (k=0 for raw)

Examples

meanci.r(35, 28, 30, 40, 26, 30, 26, 54, 0, "ciu")
dat %>% mutate (r_from_meanci = meanci.r(stress_mean, control_mean, stress_cil, stress_ciu, control_cil, control_ciu, stress_n, control_n, num_predictors))-> dat


phoebehlam/michaela documentation built on Oct. 23, 2024, 4:10 p.m.