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

sstable 
A sample size object of class cgOneFactorSampleSizeTable .

Nscale 
A character indicating whether the Yaxis, which shows the estimated
samples sizes, should be drawn on the log scale ("log" ) or
the original scale ("original" ).

mmdscale 
A character indicating whether the Xaxis, which shows the minimum
meaningful differences to be detected, should be drawn on the log scale ("log" ) or
the original scale ("original" ).

... 
Additional arguments:
cgtheme 
When set to the default TRUE , ensures a trellis device is active with
limited color scheme. Namely background ,
strip.shingle , and strip.background are each set to "white" .
device Can be one of three values:
"single" The default, which will put all graphs on the same
device page. For example, when resistant & robust and classical
least squares sample size estimates are present and model="both" (the default),
a 2 x 1 paneled graph will be created.
"multiple" Relevant only when resistant & robust and classical
least squares sample size estimates are present and model="both" . In
those cases, a new graphics device is generated to hold the resistant & robust
version, as a singlepaneled graph,
and the classical least squares version is on the previous device.
"ask" Relevant only when resistant & robust and classical
least squares samples size estimates are present and
model="both"
(the default). In
that case, each are portrayed as a singlepaneled graph, with the
ask=TRUE argument specified in par so that
the user input confirmation is needed before the graphs are
drawn.
model For
cgOneFactorOneSampleSizeTable
objects that have
classical least squares lm() filled or resistant & robust
rlm() filled slots, the following argument values are possible:
"both" Sample Size graphs based on both the ordinary
classical least squares and resistant & robust slots
are populated. This is the default when both slots are present in
the cgOneFactorSampleSizeTable object specified in the sstable
argument. If the resistant & robust fit is not available,
this value is not relevant.
"olsonly" Only an Sample Size Table Graph based on the ordinary
classical least squares table slot is created.
"rronly" Only a Sample Size Table Graph based on the resistant and
robust table slot is created.
mmdticklabels A list of two components:
mod Can be either of these two values,
"replace" Before graphing the data, remove
any automatically generated tickmarks for the yaxis,
and create the tickmarks specified in the
marks component below.
"add" Before graphing the data, add
tickmarks specified in the
marks component below, to the automatically
generated ones.
marks A vector of tickmarks to be
placed on the xaxis. Any numeric representations will
be coerced to character.
Nticklabels A list of two components:
mod Can be either of these two values,
"replace" Before graphing the data, remove
any automatically generated tickmarks for the xaxis,
and create the tickmarks specified in the
marks component below.
"add" Before graphing the data, add
tickmarks specified in the
marks component below, to the automatically
generated ones.
marks A numeric vector of tickmarks to be
placed on the yaxis. Any numeric representations will
be coerced to character.

The minimum and maximum 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
cgOneFactorSampleSizeTable
object.
samplesizeGraph.cgOneFactorSampleSizeTable
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]
cgOneFactorSampleSizeTable
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15  ()
canine.data < (, ="groupcolumns",
analysisname="Canine",
endptname="Prostate Volume",
endptunits=(()^3),
digits=1, logscale=, refgrp="CC")
canine.fit < (canine.data)
canine.samplesize < (canine.fit, direction="increasing",
mmdvec=(10, 25, 50, 75, 100)) ## print method shows table
(canine.samplesize)
(canine.samplesize, model="olsonly",
mmdticklabels=(mod="add", marks=100))

cg documentation built on May 30, 2017, 12:12 a.m.