pvalueplot: Plot the p-value function

Description Usage Arguments Bugs Examples

Description

Plot the p-value function for one or two confidence interval pairs. See following for example of the use in the literature: Is flutamide effective in patients with bilateral orchiectomy? Rothman, Kenneth J et al. The Lancet , Volume 353 , Issue 9159 , 1184

Usage

1
2
3
4
pvalueplot(est1.ll, est1.ul, est2.ll = NA, est2.ul = NA,
  label1 = "Estimate 1", label2 = "Estimate 2",
  xlabel = "Relative Risk", citype = "95%CI", labelsize = NULL,
  functionwidth = 1, referencewidth = 1)

Arguments

est1.ll

Lower confidence interval of estimate 1

est1.ul

Upper confidence interval of estimate 1

est2.ll

Lower confidence interval of estimate 2 (optional)

est2.ul

Upper confidence interval of estimate 2 (optional)

label1

If using two estimates, name the 1st

label2

If using two estimates, name the 2nd

xlabel

The x axis label

citype

Choose between '95%CI', '90%CI' or '99%CI'

labelsize

Change size of labels

functionwidth

Change width of pvalue function line

referencewidth

Change width of reference lines

Bugs

Code repo: https://github.com/epijim/episheet

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
pvalueplot(
  est1.ll = 0.9,
  est1.ul = 12,
  xlabel = "Relative Risk"
)

pvalueplot(
  est1.ll = 0.8,
  est1.ul = 3.8,
  est2.ll = 1.2,
  est2.ul = 2,
  label1 = "Estimate 1",
  label2 = "Estimate 2",
  xlabel = "Relative Risk",
  citype = "95%CI"
)

Example output

Confidence interval type is  95%CI
Confidence interval type is  95%CI

episheet documentation built on May 2, 2019, 11:44 a.m.