semi_par_serial | R Documentation |
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.
semi_par_serial(
df,
dependent,
primary,
secondaries,
weights = NULL,
standardize = T
)
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.