corr_stats | R Documentation |
edits dataframe report of linear regression and correlation tests (Pearson and Spearman)
corr_stats(data_lm, X, Y, as_character = F, n = 3, m = 4)
data_lm |
a data frame with X and Y data |
X |
name of X variable column (character) |
Y |
name of Y variable column (character) |
as_character |
reports statistics formatted as characters. Default is FALSE. |
n |
number of digits to display in correlation coefficient/rho. Default is 3. Only used if as_character = T. |
m |
number of digits to display in regression equation parameters (slope, y-intercept). Default is 4. Only used if as_character = T. |
report of regression and correlation tests
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.