multiple.cor: Multiple correlation Computes the multiple correlation...

View source: R/cortools.R

multiple.corR Documentation

Multiple correlation Computes the multiple correlation coefficient of variables in ymat with the variable x

Description

Multiple correlation Computes the multiple correlation coefficient of variables in ymat with the variable x

Usage

multiple.cor(x, ymat, use = "everything")

Arguments

x

Either a matrix of variables whose multiple correlation with each other is to be estimated; or a vector of which the multiple correlation with variables in ymat is to be estimated

ymat

a matrix or data.frame of variables of which the multiple correlation with x is to be estimated

use

optional character indicating how to handle missing values (see cor)

Value

The multiple correlation coefficient

See Also

https://www.personality-project.org/r/book/chapter5.pdf

Examples

multiple.cor(mtcars[,1],mtcars[,2:4])

AATtools documentation built on Aug. 12, 2022, 5:05 p.m.