R/rowChisqStats.R

Defines functions `rowChisqStats`

`rowChisqStats` <-
function(data,cl,compPval=TRUE,asMatrix=TRUE){
	if(!is.matrix(data))
		stop("data has to be a matrix.")
	n.cat<-max(data,na.rm=TRUE)
	checkCatMat(data,n.cat)
	if(missing(cl))
		return(chisqInd(data,n.cat,compPval=compPval,asMatrix=asMatrix))
	else
		return(chisqClass2(data,cl,n.cat,compPval=compPval))
}

Try the scrime package in your browser

Any scripts or data that you put into this service are public.

scrime documentation built on May 2, 2019, 10:24 a.m.