percent.r | R Documentation |
percent change derived from transformed exponentiated regression coefficients and confidence interval to correlation coefficient
percent change and ci -> 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).
percent.r(percent, cil, ciu, n, k, result = c("cil", "ciu", "avg"))
percent |
the percent change calculated from exponentiated logistic regression coefficient |
cil |
the lower bound of the confidence interval around the percent change |
ciu |
the upper bound of the confidence interval around the percent change |
n |
the sample size |
k |
the total number of predictors, enter k = 1 if bivariate |
result |
one of the following:
|
percent.r(7, 3, 11, 3134, 6)
dat %>% mutate (r_from_perc = percent.r(percent, percent_lowerci, percent_upperci, percent_n, percent_predictors)) -> dat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.