f.r: f to r

f.rR Documentation

f to r

Description

f-statistics (df1=1) to correlation coefficient
unadjusted statistics only

Usage

f.r(f, df, dir)

Arguments

f

the f-statistics

df

the degrees of freedom2

dir

empirical direction: +1 or -1. articles sometimes report f-statistics in absolute value, may be prudent to check when extracting stats
if the reported f-statistics is positive, read text to ensure it reflects a positive association, enter the f as is and enter dir = 1 if so
if the reported f-statistics is positive, but text suggests a negative association, enter the f as is and enter dir = -1
if the reported f-statistics is negative, you can simply enter the negative f-value and enter dir = 1

Examples

f.r(3.21, 97, -1)
dat %>% mutate (r_from_f = f.r(reg_f, reg_df, reg_emp_direction)) -> dat


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