t.r | R Documentation |
t-statistics to correlation coefficient
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).
## S3 method for class 'r'
t(t, n, k, dir)
t |
the t-statistics |
n |
the sample size |
k |
the total number of predictors, enter k = 1 if bivariate |
dir |
empirical direction: +1 or -1. articles sometimes report t-statistics in absolute value, may be prudent to check when extracting stats |
t.r(2.14, 100, -1)
dat %>% mutate (r_from_t = t.r(t_stat, analytical_n, direction)) -> dat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.