Re: [R] p.adjust problem

2011-08-16 Thread David Winsemius
On Aug 16, 2011, at 11:17 AM, m1ch...@gmx-topmail.de wrote: Hi, When I use the following code I get two different results, even though n is length(p) by default. - pvals <- c(5.722385e-02, NA, 1.018087e-01) p.adjust(pvals, method="bonfer

[R] p.adjust problem

2011-08-16 Thread m1ch43l
Hi, When I use the following code I get two different results, even though n is length(p) by default. - pvals <- c(5.722385e-02, NA, 1.018087e-01) p.adjust(pvals, method="bonferroni") p.adjust(pvals, method="bonferroni", n=length(pvals))