R/rd.r

Defines functions fs.rd

fs.rd <-
function(x,
	 method="mcd",
	 df=1)
{
    rd <- robust.distance.signed(x,method=method)
    pval <- pchisq(rd,df=df,lower.tail=F)
    full.list <- data.frame(rd=rd,
                            pval=pval,
                            positive=x$positives)
    row.names(full.list) <- row.names(x)
    full.list[order(pval,decreasing=F),]
}

Try the DESnowball package in your browser

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

DESnowball documentation built on May 1, 2019, 6:34 p.m.