I am very new to R and I'm trying to increase my decimal places (from 2 to
4) for this code:

>with(longitudinal, pairwise.wilcox.test(DV, Time,
                                        p.adjust.method="holm",
                                        paired=TRUE))

Right now the output is:

Pairwise comparisons using Wilcoxon signed rank test

data:  DV and Time

    yr15 yr2  yr5
yr2 0.03 -    -
yr5 0.03 0.05 -
yr8 0.03 0.05 0.03

I have tried various codes and they didn't work:
options(digits=4)
with(longitudinal, pairwise.wilcox.test(DV, Time,
                                        p.adjust.method="holm",
                                        paired=TRUE))

> with(longitudinal, pairwise.wilcox.test(DV, Time,
+ p.adjust.method="holm",
+ paired=TRUE),
+ options(digits=4))

> with(longitudinal, pairwise.wilcox.test(DV, Time,
+ p.adjust.method="holm",
+ paired=TRUE,
+ digits=4))

> with(longitudinal, pairwise.wilcox.test(DV, Time,
+ p.adjust.method="holm",
+ paired=TRUE),
+ signif(digits=4))

thanks,
Linh

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to