equivTestPlot: Plot the equivalence test result

Description Usage Arguments Examples

View source: R/plots.R

Description

Plot the equivalence test result including the margin, confidence intervals of the mean difference, and estimated mean difference.

Usage

1
2
3
equivTestPlot(meanDif, ci, alpha, margin, qaNameLong, testDrugName = "",
  refDrugName = "", showDrugName = FALSE, showQA = FALSE,
  showCINumbers = FALSE)

Arguments

meanDif

difference between mean of test and reference product

ci

confidence interval for mean difference, a vector of two values

alpha

nominal level of the hypothesis test

margin

a vector consisting of lower margin and upper margin

qaNameLong

the quality attribute name

testDrugName

test drug name

refDrugName

reference drug name

showDrugName

logic value indicating if the drug names are to be shown.

showQA

logic value indicating if the quality attribute (QA) is to be shown.

showCINumbers

whether CI values are shown in the figure.

Examples

1
2
3
4
5
6
equivTestPlot(0.623,c(-2,2),0.05,c(-9.79,9.79),
  "q a","test","reference")
equivTestPlot(0.623,c(-2,2),0.05,c(-9.79,9.79),
  "Relative Potency","test","reference",showDrugName = TRUE,showQA=TRUE,showCINumbers = TRUE)
equivTestPlot(0.5,c(-1.05,2.05),0.05,c(-9.79,9.79),
  "Relative Potency","test","reference",showQA=TRUE,showCINumbers = TRUE)

Example output



equivalenceTest documentation built on May 1, 2019, 8:18 p.m.