Description Usage Arguments Details Value Note Author(s) See Also Examples
Creates a graph to see estimated sample sizes in a cgPairedDifferenceSampleSizeTable object.
1 2  ## S4 method for signature 'cgPairedDifferenceSampleSizeTable'
samplesizeGraph(sstable, Nscale, mmdscale, ...)

sstable 
A sample size object of class 
Nscale 
A 
mmdscale 
A 
... 
Additional arguments. Two are currently valid:

The minimum and maximum experimental unit sample size values are added inside the plot region in blue, flush against the yaxis in the top and bottom left corners.
Tick marks are attempted to be chosen wisely. For logscaled axes in
particular, leading digits of 2, 5, and 10 for values are included if
possible. Since the algorithm is empirical, the ticklabels
argument is available for further refinement or complete replacement
of tickmarks.
The method essentially portrays in a graph the same information shown
by the print method of the
cgPairedDifferenceSampleSizeTable
object.
samplesizeGraph.cgPairedDifferenceSampleSizeTable
returns
an invisible NULL
. The main purpose is the side
effect of graphing to the current device.
Contact [email protected] for bug reports, questions, concerns, and comments.
Bill Pikounis [aut, cre, cph], John Oleynick [aut], Eva Ye [ctb]
cgPairedDifferenceSampleSizeTable
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18  data(anorexiaFT)
anorexiaFT.data < prepareCGPairedDifferenceData(anorexiaFT, format="groupcolumns",
analysisname="Anorexia FT",
endptname="Weight",
endptunits="lbs",
expunitname="Patient",
digits=1,
logscale=TRUE)
anorexiaFT.fit < fit(anorexiaFT.data)
## The interest is in increased weight for the anorexia FT
## (family treatment) group of patients
anorexiaFT.samplesize < samplesizeTable(anorexiaFT.fit, direction="increasing",
mmdvec=c(5, 10, 15, 20)) ## print method shows table
samplesizeGraph(anorexiaFT.samplesize)
samplesizeGraph(anorexiaFT.samplesize, nticklabels=list(mod="add", marks=3))

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.