File:Fisher-method-fused-P.svg

Original file(SVG file, nominally 623 × 533 pixels, file size: 342 KB)

Summary

Description
English: Fusing two p-values by using Fisher's method.
Date
Source Own work
Author Chen-Pan Liao

R code

d <-
  expand.grid(P1 = seq(0.001, 1, length = 500),
              P2 = seq(0.001, 1, length = 500))
d$`Fused P` <-
  pchisq(with(d,-2 * (log(P1) + log(P2))), 2 * 2, lower.tail = F)

library(ggpubr)
library(extrafont)
loadfonts(device = "win")
cols <-
  c(
    '#67001f',
    '#730d2c',
    '#7f1938',
    '#8a2545',
    '#953052',
    '#9f3b5f',
    '#a9466c',
    '#b35278',
    '#bc5e85',
    '#c46a91',
    '#cc779d',
    '#d483a9',
    '#db90b4',
    '#e19ebf',
    '#e7acca',
    '#ecb9d4',
    '#f0c8de',
    '#f3d6e8',
    '#f6e5f1',
    '#f7f4f9'
  )
ggplot(d, aes(P1, P2)) +
  geom_contour_filled(aes(z = `Fused P`), binwidth = 0.05, color = 8) +
  coord_fixed() +
  scale_fill_manual(values = cols) +
  scale_x_continuous(
    expand = expansion(c(0, 0)),
    limits = c(0, 1),
    breaks = seq(0, 1, 0.1)
  ) +
  scale_y_continuous(
    expand = expansion(c(0, 0)),
    limits = c(0, 1),
    breaks = seq(0, 1, 0.1)
  ) +
  guides(fill = guide_legend(title = "Fused P")) +
  theme_pubr(11, "Liberation Sans", legend = "right") + 
  theme(legend.text = element_text(size = 11)) +
  x11(width = 7, height = 6)

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Captions

Fusing two p-values by using Fisher's method

Items portrayed in this file

depicts

25 October 2021

image/svg+xml

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current01:45, 26 October 2021Thumbnail for version as of 01:45, 26 October 2021623 × 533 (342 KB)Chen-Pan Liaominor tweaks
05:12, 25 October 2021Thumbnail for version as of 05:12, 25 October 2021623 × 533 (486 KB)Chen-Pan Liaocalculation correction
04:54, 25 October 2021Thumbnail for version as of 04:54, 25 October 2021623 × 533 (336 KB)Chen-Pan LiaoUploaded own work with UploadWizard
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Global file usage

The following other wikis use this file:

Metadata