MOD_partial: Calculate a partial correlation.

MOD_partialR Documentation

Calculate a partial correlation.

Description

Calculates the partial correlation.

Usage

MOD_partial(df, x, y, z, weights_var = NULL)

Arguments

df

A data frame.

x

String with the name of the first variable.

y

String with the name of the second variable.

z

String with the name of the control variable.

weights_var

String with the name of the weights variable. Can be left out.


Deleetdk/kirkegaard documentation built on Feb. 28, 2025, 5:04 p.m.