adjust_p {depigner}R Documentation

Adjust P-values

Description

Adjust P-values of a tidy_summary object

Usage

adjust_p(x, method)

## S3 method for class 'tidy_summary'
adjust_p(x, method = "BH")

Arguments

x

a tidy_summary object.

method

(chr, default = "BH") a valid method for p.adjust

Value

a tidy_summary object with the Ps adjusted

Examples


  library(Hmisc)
  my_summary <- summary(Species ~ ., data = iris,
    method = "reverse",
    test = TRUE
  )

  tidy_summary(my_summary, prtest = "P") %>%
    adjust_p()


[Package depigner version 0.8.4 Index]