regp.r | R Documentation |
regression p-values (or other t distribution-based p-values) to correlation coefficient
estimates t-statistics and then correlation coefficients
regp.r(p, n, k, dir)
p |
the p-value |
n |
the sample size |
k |
the number of predictors |
dir |
empirical direction: +1 for positive associaitons and -1 for negative associations |
regp.r(.023, 100, 3, 1)
dat %>% mutate (r_from_pval = regp.r(reg_pval, reg_n, reg_predictors, reg_emp_direction)) -> dat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.