R/rowTrendStats.R

Defines functions `rowTrendStats`

`rowTrendStats` <-
function(X, y, use.n=NULL, add.pval=TRUE){
	M <- rowCors(X, y, trendStat=TRUE, use.n=use.n)
	if(!add.pval)
		return(M)
	rawp <- pchisq(M, 1, lower.tail=FALSE)
	structure(list(stats=M, rawp=rawp))
}

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.