Browse code

Add examples for calculatePosteriorMean and posteriorProbability help files

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/crlmm@58634 bc3139a8-67e5-0310-9ffc-ced21a209358

Rob Scharp authored on 01/10/2011 04:47:17
Showing3 changed files

... ...
@@ -1,7 +1,7 @@
1 1
 Package: crlmm
2 2
 Type: Package
3 3
 Title: Genotype Calling (CRLMM) and Copy Number Analysis tool for Affymetrix SNP 5.0 and 6.0 and Illumina arrays.
4
-Version: 1.11.13
4
+Version: 1.11.14
5 5
 Date: 2010-12-10
6 6
 Author: Benilton S Carvalho <Benilton.Carvalho@cancer.org.uk>, Robert Scharpf <rscharpf@jhsph.edu>, Matt Ritchie <mritchie@wehi.edu.au>, Ingo Ruczinski <iruczins@jhsph.edu>, Rafael A Irizarry
7 7
 Maintainer: Benilton S Carvalho <Benilton.Carvalho@cancer.org.uk>, Robert Scharpf <rscharpf@jhsph.edu>, Matt Ritchie <mritchie@wehi.EDU.AU>
... ...
@@ -49,6 +49,10 @@ R. Scharpf
49 49
   \code{\link{predictionRegion}}, \code{\link{posteriorProbability}}
50 50
 }
51 51
 \examples{
52
+data(sample.CNSet)
53
+pr <- predictionRegion(sample.CNSet, copyNumber=0:4)
54
+pp <- posteriorProbability(sample.CNSet, predictRegion=pr)
55
+pm <- calculatePosteriorMean(sample.CNSet, posteriorProb=pp, w=rep(1/5, 5))
52 56
 }
53 57
 % Add one or more standard keywords, see file 'KEYWORDS' in the
54 58
 % R documentation directory.
... ...
@@ -45,6 +45,10 @@ R. Scharpf
45 45
   \code{\link{predictionRegion}}, \code{\link{genotypes}}, \code{\link{calculatePosteriorMean}}
46 46
 }
47 47
 \examples{
48
+data(sample.CNSet)
49
+pr <- predictionRegion(sample.CNSet, copyNumber=0:4)
50
+pp <- posteriorProbability(sample.CNSet, predictRegion=pr)
51
+dim(pp)
48 52
 }
49 53
 % Add one or more standard keywords, see file 'KEYWORDS' in the
50 54
 % R documentation directory.