expb.r: exponentiated b and ci to r

expb.rR Documentation

exponentiated b and ci to r

Description

exponentiated logistic regression coefficient and confidence interval to correlation coefficient
expnentiated b and ci -> t -> r
unadjusted t-statistics estimate bivariate correlation coefficient (enter k = 1)
adjusted t-statistics (e.g., from a regression) estimate partial correlation coefficient (aloe & thompson, 2013).

Usage

expb.r(b, cil, ciu, n, k)

Arguments

b

exponentiated logistic regression coefficient

cil

the lower bound of the 95 confidence interval

ciu

the upper bound of the 95 confidence interval

n

the sample size

k

the total number of predictors, enter k = 1 if bivariate

Examples

expb.r(4.05, 1.56, 10.51, 141, 8)
dat %>% mutate (r_from_expbci = expb.r(expb_coef, expb_lowerci, expb_upperci, expb_n, expb_predictors)) -> dat


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