Learn R Programming

smiles (version 0.1-0)

PlotCoRNET: Plot of Continuous Restriction for Noting Error Thresholds

Description

PlotCoRNET() is a function for plotting Continuous Restriction for Noting Error Thresholds. In other words, it returns sequential monitoring and interim line and edge.

Usage

PlotCoRNET(
  object = NULL,
  sclAxsX = "sample",
  txtTtl = NULL,
  group = NULL,
  lgcZone = FALSE,
  lgcLblStdy = FALSE,
  lgcSAP = FALSE,
  lgcInvert = FALSE,
  lgcSmooth = FALSE,
  szFntTtl = 1.8,
  szFntTtlX = 1.2,
  szFntTtlY = NULL,
  szFntAxsX = 0.8,
  szFntAxsY = 0.8,
  szFntLgnd = 0.7,
  szFntLblY = 1.2,
  szFntStdy = 0.8,
  szFntRIS = 0.8,
  szFntAIS = 0.8,
  szPntStdy = 1,
  szPntASB = 0.8,
  szLn0 = 1,
  szLnSig = 1,
  szLnZCum = 2,
  szLnASB = 1,
  szLnRIS = 1,
  typPntStdy = NULL,
  typPntASB = NULL,
  typLn0 = 1,
  typLnSig = 2,
  typLnZCum = 1,
  typLnASB = 3,
  typLnRIS = 2,
  clrTtl = "black",
  clrTtlX = "black",
  clrTtlY = "black",
  clrAxsX = "black",
  clrAxsY = "black",
  clrLgnd = "black",
  clrLblY = "black",
  clrLblStdy = "black",
  clrLblRIS = "black",
  clrLblAIS = "black",
  clrPntStdy = "gray25",
  clrPntASB = "none",
  clrLn0 = "gray25",
  clrLnSig = "gray",
  clrLnZCum = "blue4",
  clrLnASB = "red4",
  clrLnRIS = "red4",
  anglStdy = 30,
  BSB = FALSE
)

Value

PlotCoRNET() returns a plot of trial sequential analysis.

Arguments

object

OBJECT in DoTSA class that is an output of trial sequential analysis using function DoTSA().

sclAxsX

CHARACTER for indicating unit of scale on axis X.

txtTtl

CHARACTER for user-defined main title on the trial sequential analysis plot.

group

CHARACTER for labeling two groups.

lgcZone

LOGIC value for indicating whether to show zones.

lgcLblStdy

LOGIC value for indicating whether to label each data source.

lgcSAP

LOGIC value for indicating whether to show sequential-adjusted power.

lgcInvert

LOGIC value for indicating whether to invert plot.

lgcSmooth

LOGIC value for indicating whether to smooth error boundaries.

szFntTtl

NUMERIC value for indicating font size of main title.

szFntTtlX

NUMERIC value for indicating font size of title on axis X.

szFntTtlY

NUMERIC value for indicating font size of title on axis Y.

szFntAxsX

NUMERIC value for indicating font size of scale on axis X.

szFntAxsY

NUMERIC value for indicating font size of scale on axis Y.

szFntLgnd

NUMERIC value for indicating font size of legend.

szFntLblY

NUMERIC value for indicating font size of the label of "Cumulative z-score" on axis Y.

szFntStdy

NUMERIC value(s) for indicating font size(s) of the label(s) of each data source.

szFntRIS

NUMERIC value for indicating font size of the label of required information size.

szFntAIS

NUMERIC value for indicating font size of the label of acquired information size.

szPntStdy

NUMERIC value(s) for indicating size(s) of observed point(s).

szPntASB

NUMERIC value for indicating size of point(s) on alpha-spending boundaries.

szLn0

NUMERIC value for indicating width of null line.

szLnSig

NUMERIC value for indicating width of line for statistical significance.

szLnZCum

NUMERIC value for indicating width of line for cumulative z-score.

szLnASB

NUMERIC value for indicating width of line for alpha-spending boundaries.

szLnRIS

NUMERIC value for indicating width of line for required information size.

typPntStdy

NUMERIC value(s) between 1 to 5 for indicating type(s) of observed point(s). Symbols in the current version includes circle, square, diamond, triangle point-up, and triangle point down.

typPntASB

NUMERIC value between 1 to 5 for indicating type of point(s) on alpha-spending boundaries. Symbols in the current version includes circle, square, diamond, triangle point-up, and triangle point down.

typLn0

NUMERIC value for indicating type of null line.

typLnSig

NUMERIC value for indicating type of line for statistical significance.

typLnZCum

NUMERIC value for indicating type of line for cumulative z-score.

typLnASB

NUMERIC value for indicating type of line for alpha-spending boundaries.

typLnRIS

NUMERIC value for indicating type of line for required information size.

clrTtl

CHARACTER of a color name for main title.

clrTtlX

CHARACTER of a color name for title on axis X.

clrTtlY

CHARACTER of a color name for title on axis Y.

clrAxsX

CHARACTER of a color name for scale on axis X.

clrAxsY

CHARACTER of a color name for scale on axis Y.

clrLgnd

CHARACTER of a color name for legend.

clrLblY

CHARACTER of a color name for the label "Cumulative z-score" on axis Y.

clrLblStdy

CHARACTER of color name(s) for the label(s) of each data source.

clrLblRIS

CHARACTER of a color name for the label of required information size.

clrLblAIS

CHARACTER of a color name for the label of acquired information size.

clrPntStdy

CHARACTER of color name(s) for observed point(s) of data source.

clrPntASB

CHARACTER of a color name for point(s) on the alpha-spending boundaries.

clrLn0

CHARACTER of a color name for null line.

clrLnSig

CHARACTER of a color name for line of statistical significance.

clrLnZCum

CHARACTER of a color name for line of cumulative z-score.

clrLnASB

CHARACTER of a color name for line of alpha-spending boundaries.

clrLnRIS

CHARACTER of a color name for line of required information size.

anglStdy

NUMERIC value between 0 and 360 for indicating angle of data source.

BSB

LOGIC value for indicating whether to illustrate beta-spending boundaries.

Author

Enoch Kang

References

Jennison, C., & Turnbull, B. W. (2005). Meta-analyses and adaptive group sequential designs in the clinical development process. Journal of biopharmaceutical statistics, 15(4), 537–558. https://doi.org/10.1081/BIP-200062273.

Wetterslev, J., Jakobsen, J. C., & Gluud, C. (2017). Trial sequential analysis in systematic reviews with meta-analysis. BMC medical research methodology, 17(1), 1-18.

NCSS Statistical Software (2023). Group-sequential analysis for two proportions. In PASS Documentation. Available online: https://www.ncss.com/wp-content/themes/ncss/pdf/Procedures/NCSS/Group-Sequential_Analysis_for_Two_Proportions.pdf

See Also

DoTSA

Examples

Run this code
## Not run:
# 1. Import a dataset of study by Fleiss (1993)
library(meta)
data("Fleiss1993bin")

# 2. Perform trial sequential analysis
 output <- DoTSA(Fleiss1993bin, study, year,
                 r1 = d.asp, n1 = n.asp,
                 r2 = d.plac, n2 = n.plac,
                 measure = "RR", RRR = 0.2,
                 group = c("Aspirin", "Placebo"),
                 plot = TRUE)

# 3. Illustrate plot of trial sequential analysis
 PlotCoRNET(output)

## End(Not run)

Run the code above in your browser using DataLab