Displaying 1 result from an estimated 1 matches for "statnam".
Did you mean:
satnam
2011 Jan 06
1
Hmisc, summary.formula and catTest
Dear all,
I?m specifying the fisher.exact test for use with summary.formula as follows:
u<-function(a,b){
j<-fisher.test(a)
p<-list(P=j$p.value,stat=NA,df=NA,testname=j$method,statname="")
return(p)
}
However I?m also required to specify stat & df. However this doesnt apply to the fisher test. I?ve tried specifying them as NA and "" without success-throws either a blank or an error msg trying to round a non-numeric value respectively.
reproducible...