Description Usage Arguments Value Author(s) References See Also Examples
View source: R/sampleSize3DscatterPlots.R
Displays the sample sizes computed using the clinically important parameters. This plot complements the contours plot.
1 | sampleSize3DscatterPlots(Z,m,DIFF,VAR,beta,alpha,observedDIFF,observedVAR,observedSampleSize,Angle,Indicator)
|
Z |
the heterogeneity correction factor. |
m |
the number of replicates |
DIFF |
the clinically important difference. |
VAR |
the protein variance. |
beta |
the power to estimated the clinically important difference. |
alpha |
the significance level. |
observedDIFF |
the clinically important difference from your pilot data. |
observedVAR |
the clinically important variance from your pilot data. |
observedSampleSize |
the sample size estimated from your pilot data. |
Angle |
the angle for setting the orientation of the 3D-scatterplot. |
Indicator |
An indicator variable for controlling items to include in the plot. If it takes the value 1, then the parameters and sample size of previous proteomic profiling studies together with the results from your pilot study are plotted as points on the sample size calculation grid. If it is set to 0, then only the latter will be plotted. |
It returns a 3D plot of sample size against the variance versus differences.
Stephen Nyangoma
1. Nyangoma SO, Ferreira JA, Collins SI, Altman DG, Johnson PJ, and Billingham LJ: Sample size calculations for planning clinical proteomic profiling studies using mass spectrometry. Bioinformatics, 2009, Submitted
2. Nyangoma SO, Collins SI, Douglas GW, Altman DG, Johnson PJ, and Billingham LJ: Issues in sample size calculations for designing cancer proteomic profiling studies. BMC Bioinformatics, 2009, Submitted
sampleSizeContourPlots
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 | # the plot will be saved in your working directory
Z <- 2.460018
m <- 2
######
DIFF <- seq(0.1,0.50,0.01)
VAR <- seq(0.2,4,0.1)
beta <- c(0.90,0.80,0.70)
alpha <- 1 - c(0.001, 0.01,0.05)/2
####
observedDIFF <- 0.4
observedVAR <- 1.0
observedSampleSize <- 80
#########
# indicator for including results of previous studies on the 3D plot.
Indicator <- 1
# sets the orientation of the 3D plot.
Angle <- 60
sampleSize3DscatterPlots(Z,m,DIFF,VAR,beta,alpha,observedDIFF,observedVAR,observedSampleSize,Angle,Indicator)
|
Loading required package: limma
Loading required package: statmod
Loading required package: rgl
Loading required package: lattice
Loading required package: scatterplot3d
Loading required package: Biobase
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following object is masked from 'package:limma':
plotMA
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, cbind, colMeans, colSums, colnames, do.call,
duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
lapply, lengths, mapply, match, mget, order, paste, pmax, pmax.int,
pmin, pmin.int, rank, rbind, rowMeans, rowSums, rownames, sapply,
setdiff, sort, table, tapply, union, unique, unsplit, which,
which.max, which.min
Welcome to Bioconductor
Vignettes contain introductory material; view with
'browseVignettes()'. To cite Bioconductor, see
'citation("Biobase")', and for packages 'citation("pkgname")'.
Loading required package: tools
Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE
3: .onUnload failed in unloadNamespace() for 'rgl', details:
call: fun(...)
error: object 'rgl_quit' not found
png
2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.