Displaying 1 result from an estimated 1 matches for "cattest".
Did you mean:
  casttest
  
2011 Jan 06
1
Hmisc, summary.formula and catTest
...em as NA and "" without success-throws either a blank or an error msg trying to round a non-numeric value respectively.
reproducible example:
ex<-pbc
summary(trt~sex+ascites,data=ex,test=T,method="reverse")
summary(trt~sex+ascites,data=ex,test=T,method="reverse",catTest=u)
The closest I get is 
u<-function(a,b){
	
	j<-fisher.test(a)
	p<-list(P=j$p.value,stat=1,df=1,testname=j$method,statname="")
	return(p)
	
	}
However then I manually have to edit the output. Is there a smart way of doing this?
//M