View source: R/weighted_average_rho.R
weighted_average_rho | R Documentation |
calculates weighted average rho in a blocked correlation study, as discussed with Jose Ferreira (RIVM)
weighted_average_rho(data, x, y, stratum = "block")
data |
expects a data frame |
x |
Character value, first variable. Should be in data |
y |
Character value, second variable. Should be in data |
stratum |
stratum (factor) to block the association with |
numeric value (weighted average rho)
weighted_average_rho(iris, "Petal.Length", "Petal.Width", "Species")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.