R/summary.BY.R

Defines functions summary.BY

Documented in summary.BY

summary.BY <-
function(object, ...){
cat("Call:\n")
 print(object$call)
cat("\n")
cat("Parameters:","\n")
cat("alpha=",object$alpha,"\n")
tabla<-table(object$Adjusted.pvalues<=object$alpha)

if(sum(object$Adjusted.pvalues>object$alpha)==length(object$data)){attributes(tabla)$dimnames[[1]]=c(">alpha")}else{if(sum(object$Adjusted.pvalues<=object$alpha)==length(object$data)){attributes(tabla)$dimnames[[1]]=c("<=alpha")}else{attributes(tabla)$dimnames[[1]]=c(">alpha","<=alpha")}}



cat("\n")
res <- list(Rejections=object$Rejections,FDR=object$FDR,Adjusted.pvalues=tabla)

class(res) <- "summary.BY"
return(res)
}

Try the sgof package in your browser

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

sgof documentation built on Sept. 8, 2023, 5:34 p.m.