PlotCI: Plot Simultaneous Confidence Intervals

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Draw a plot of simultaneous confidence intervals (SCIs) from multiple comparisons in a longitudinal setting using the ggplot2 framework.

Usage

1
PlotCI(output, title="95% SCIs", background="white")

Arguments

output

An object of class silo obtained from using functions SimLongi, SimLongiMix, or SimLongiMMM, or a named list of (up to seven) such objects.

title

An optional character string giving the plot title. By default, a standard headline ("95% SCIs") is printed.

background

A character string defining the background color for the plotting region. The default is "white" but may be changed to "gray" for the familiar ggplot2 aesthetics. British spelling ("grey") works as well.

Details

If output is a list containing several objects of class silo, this list must be named (e.g., list(name1=firstobject, name2=secondobject)) so that an informative legend can be created according to the names.

If no headline is desired, simply enter title=NULL.

Value

A graphical display of SCIs.

Author(s)

Philip Pallmann pallmann@biostat.uni-hannover.de

See Also

SimLongi, SimLongiMMM, SimLongiMMM

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
data(heart)

# Many-to-one comparisons of groups per time point
# taking the third group ("control") as reference

mycomp <- SimLongi(data=heart, response="heartrate", group="drug",
                   time="time", id="person", direction="gpt",
                   type="Dunnett", base=3, df="adj")
      
PlotCI(mycomp)

mycompMMM <- SimLongiMMM(data=heart, response="heartrate", group="drug",
                         time="time", id="person", type="Dunnett", base=3,
                         refdist="t")
                   
PlotCI(list(SL=mycomp, SL_MMM=mycompMMM))

PhilipPallmann/SimLongi documentation built on May 8, 2019, 1:34 a.m.