Description Usage Arguments Value Note Author(s) See Also Examples
Generic function to graph a table of estimated sample sizes, using a Sample Size table created by the cg package.
1 | samplesizeGraph(sstable, Nscale = "log", mmdscale = "log", ...)
|
sstable |
A |
Nscale |
A |
mmdscale |
A |
... |
Additional arguments, depending on the specific method written for the object. See the specific methods for additional details. |
The main purpose is the side effect of graphing to the current device. See the specific methods for discussion of any return values.
Contact cg@billpikounis.net for bug reports, questions, concerns, and comments.
Bill Pikounis [aut, cre, cph], John Oleynick [aut], Eva Ye [ctb]
samplesizeGraph.cgOneFactorSampleSizeTable
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #### One Factor data
data(canine)
canine.data <- prepareCGOneFactorData(canine, format="groupcolumns",
analysisname="Canine",
endptname="Prostate Volume",
endptunits=expression(plain(cm)^3),
digits=1, logscale=TRUE, refgrp="CC")
canine.fit <- fit(canine.data)
canine.samplesize <- samplesizeTable(canine.fit, direction="increasing",
mmdvec=c(10, 25, 50, 75, 100))
samplesizeGraph(canine.samplesize)
#### Paired Difference data
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.