bse.r: b and se to r

bse.rR Documentation

b and se to r

Description

regression coefficient and standard error to correlation coefficient
unadjusted b and se estimate bivariate correlation coefficient (enter k = 1)
adjusted b and se estimate partial correlation coefficient (aloe & thompson, 2013).

Usage

bse.r(b, se, n, k)

Arguments

b

the regression coefficient (un-transformed only, see other functions e.g., expb.r() for transformed coefficients)

se

the standard error

n

the analytical sample size

k

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

Examples

bse.r(.25, .09, 100, 3)
dat %>% mutate (r_from_bse = bse.r(reg_coef, reg_se, reg_n, reg_predictors)) -> dat


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