semi_partial_r: Semi partial correlation

Description Usage Arguments Examples

View source: R/semi_partial_r.R

Description

Semi-partial correlation between variables x and y, where overlap of x with controls is controlled for.

Usage

1
semi_partial_r(y, x, controls, data, return_pvalue = FALSE)

Arguments

y

character string of name of outcome variable in data

x

character string of name of predictor variable in data

controls

character vector of one or more names of control variables in data

data

data.frame

return_pvalue

logical indicating whether to return two tailed p-value of semi-partial correlation

Examples

1
2

jeromyanglim/personalityfacets documentation built on Dec. 23, 2019, 7:31 p.m.