mcr.test: Multiple Correlation Test of Significance

Description Usage Arguments Value Author(s) Examples

View source: R/mctest.R

Description

Tests the significance of mutliple correlation coefficient

Usage

1
mcr.test(x, ld, rd)

Arguments

x

Data Matrix or Variance Covariance or Correlation matrix

ld

Label of dependent Variable

rd

Vector of labels of independent variables

Value

a htest class object

Author(s)

Abirami S

Examples

1
2
3
4
5
6
7
## Example
library(MASS)
mu<-c(10,12,13,14)
sig<-matrix(0,4,4)
diag(sig)<-c(2,1,1,2)
da<-mvrnorm(25,mu,sig)
mcr.test(da,1,c(2:4))

Example output

Loading required package: MASS
Loading required package: matrixcalc

	Testing Multiple Correlation Coefficient is Zero

data:  da
Statistic = 0.58412, df1 = 4.00000, df2 = 21.00000, sample.MC =
0.27752, p-value = 0.632
alternative hypothesis: true population multiple correlation greater than 0

mro documentation built on May 2, 2019, 10:45 a.m.

Related to mcr.test in mro...