Skip to content

Latest commit

 

History

History
110 lines (61 loc) · 2.09 KB

File metadata and controls

110 lines (61 loc) · 2.09 KB
title description keywords author ms.author manager ms.date ms.topic ms.service ms.assetid ROBOTS audience ms.devlang ms.reviewer ms.suite ms.tgt_pltfrm ms.custom
rxChiSquaredTest function (revoAnalytics) | Microsoft Docs
Chi-squared Test, Fisher's Exact Test, and Kendall's Tau Rank Correlation Coefficient
(revoAnalytics), rxChiSquaredTest, rxFisherTest, rxKendallCor, htest
chuckheinzelman
charlhe
cgronlun
07/15/2019
reference
mlserver

rxChiSquaredTest: Chi-squared Test, Fisher's Exact Test, and Kendall's Tau Rank Correlation Coefficient

Description

Chi-squared Test, Fisher's Exact Test, and Kendall's Tau Rank Correlation Coefficient

Usage

  rxChiSquaredTest(x, ...)
  rxFisherTest(x, ...)
  rxKendallCor(x, type = "b", seed = NULL, ...)

Arguments

x

an object of class xtabs, rxCrossTabs, or rxCube.

type

character string specifying the version of Kendall's correlation. Supported types are "a", "b" or "c".

seed

seed for random number generator. If NULL, the seed is not set.

...

additional arguments to the underlying function.

Value

an object of class rxMultiTest.

Author(s)

Microsoft Corporation Microsoft Technical Support

See Also

rxMultiTest, rxPairwiseCrossTab, rxRiskRatio, rxOddsRatio.

Examples



 # Create a data frame with admissions data
 Admit <- factor(c(rep('Admitted', 46), rep('Rejected', 668)))
 Gender <- factor(c(rep('M', 22), rep('F', 24), rep('M', 351), rep('F', 317)))
 Admissions <- data.frame(Admit, Gender)

 # For most efficient computations, return an xtabs object from rxCrossTabs
 adminXtabs <- rxCrossTabs(~Admit:Gender, data = Admissions, returnXtabs = TRUE)
 rxChiSquaredTest(adminXtabs)
 rxFisherTest(adminXtabs)
 rxKendallCor(adminXtabs, type = "b")