weighted_average_rho: Weighted average rho

View source: R/weighted_average_rho.R

weighted_average_rhoR Documentation

Weighted average rho

Description

calculates weighted average rho in a blocked correlation study, as discussed with Jose Ferreira (RIVM)

Usage

weighted_average_rho(data, x, y, stratum = "block")

Arguments

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

Value

numeric value (weighted average rho)

Examples

weighted_average_rho(iris, "Petal.Length", "Petal.Width", "Species")


LDSamson/associationstudies documentation built on April 14, 2025, 11:52 a.m.