Displaying 1 result from an estimated 1 matches for "name2_mat2".
Did you mean:
name1_mat2
2013 Jun 24
1
help needed with printing multiple arguments as vectors, not matrices
...e; return(pval);}
chiArray <- function(x) { apply(mat1, 1, fish, x); }
sapply(1:nrow(mat2), function(j){chiArray(mat2[j, ]);});
chisq.cna.mut.test <- sapply(1:nrow(mat2), function(j){chiArray(mat2[j, ]);});
I want output to be:
name1_mat1 name1_mat2 n00 n01 n10 n11 pvalue
name1_mat1 name2_mat2 n00 n01 n10 n11 pvalue
[[alternative HTML version deleted]]