semi_par_serial: Semi-partial correlation with weights

semi_par_serialR Documentation

Semi-partial correlation with weights

Description

Returns a table of semi-partial correlations where a dependent variable has first been regressed on the primary predictor variable, and then correlated with each of the secondary predictors in turn.

Usage

semi_par_serial(
  df,
  dependent,
  primary,
  secondaries,
  weights = NULL,
  standardize = T
)

Arguments

df

A data frame with the variables.

dependent

A string with the name of the dependent variable.

primary

A string with the name of the primary predictor variable.

secondaries

A character vector with the names of the secondary predictor variables.

weights

A string with the name of the variable to use for weights.

standardize

Whether to standardize the data frame before running results. The weights variable will not be standardized.


Deleetdk/kirkegaard documentation built on April 22, 2024, 5:22 p.m.