View source: R/PARTIAL_COEFS.R
PARTIAL_COEFS | R Documentation |
Produces standardized regression coefficients, partial correlations, and semi-partial correlations for a correlation matrix in which one variable is a dependent or outcome variable and the other variables are independent or predictor variables.
PARTIAL_COEFS(cormat, modelRsq=NULL, verbose=TRUE)
cormat |
A correlation matrix. The DV (the dependent or outcome variable) must be in
the first row/column of cormat.
|
modelRsq |
(optional) The model Rsquared, which makes the computations slightly faster
when it is available.
|
verbose |
Should detailed results be displayed in console? |
A data.frame containing the standardized regression coefficients (betas), the Pearson correlations, the partial correlations, and the semi-partial correlations for each variable with the DV.
Brian P. O'Connor
Cohen, J., Cohen, P., West, S. G., & Aiken, L. S. (2003). Applied multiple regression/correlation analysis for the behavioral sciences (3rd ed.). Lawrence Erlbaum Associates.
PARTIAL_COEFS(cormat = cor(data_Green_Salkind_2014))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.