Description Usage Arguments Examples
View source: R/semi_partial_r.R
Semi-partial correlation between variables x and y,
where overlap of x with controls
is controlled for.
1 | semi_partial_r(y, x, controls, data, return_pvalue = FALSE)
|
y |
character string of name of outcome variable in |
x |
character string of name of predictor variable in |
controls |
character vector of one or more names of control variables in |
data |
data.frame |
return_pvalue |
logical indicating whether to return two tailed p-value of semi-partial correlation |
1 2 | data(facets_data); data(facets_meta)
semi_partial_r('swl', facets_meta$ipip_facets[1], facets_meta$ipip_factors, facets_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.