[BioC] xval
Stephen Henderson
s.henderson at ucl.ac.uk
Wed Oct 4 18:29:08 CEST 2006
The code in the xval help file works for me.
--------------------
>library(golubEsets)
>data(golubMerge)
>smallG <- golubMerge[200:250,]
>lk1 <- xval(smallG, "ALL.AML", knnB, xvalMethod="LOO",
group=as.integer(0))
> lk1
[1] "AML" "ALL" "AML" "AML" "ALL" "ALL" "AML" "AML" "ALL" "ALL" "ALL"
"ALL"
[13] "ALL" "ALL" "ALL" "ALL" "ALL" "AML" "AML" "ALL" "AML" "AML" "ALL"
"AML"
[25] "AML" "AML" "ALL" "AML" "AML" "AML" "ALL" "ALL" "ALL" "AML" "ALL"
"AML"
[37] "ALL" "ALL" "ALL" "ALL" "ALL" "ALL" "ALL" "AML" "ALL" "AML" "ALL"
"ALL"
[49] "ALL" "ALL" "ALL" "ALL" "ALL" "ALL" "ALL" "ALL" "ALL" "ALL" "ALL"
"ALL"
[61] "ALL" "ALL" "AML" "AML" "AML" "AML" "ALL" "ALL" "AML" "AML" "ALL"
"ALL"
> sessionInfo()
Version 2.3.0 (2006-04-24)
i386-pc-mingw32
attached base packages:
[1] "tools" "methods" "stats" "graphics" "grDevices" "utils"
[7] "datasets" "base"
other attached packages:
golubEsets MLInterfaces Biobase
"1.0.1" "1.4.0" "1.10.0"
------------------------
so it maybe something peculiar to the way you have installed or loaded
the 'MLInterfaces' package.
Stephen Henderson
Wolfson Inst. for Biomedical Research
Cruciform Bldg., Gower Street
University College London
United Kingdom, WC1E 6BT
+44 (0)207 679 6827
-----Original Message-----
From: bioconductor-bounces at stat.math.ethz.ch
[mailto:bioconductor-bounces at stat.math.ethz.ch] On Behalf Of
mpg33 at drexel.edu
Sent: 04 October 2006 16:34
To: bioconductor at stat.math.ethz.ch
Subject: [BioC] xval
I am attempting to use the xval function to run knnB on an exprSet
object. The command line given by the help file doesnt seem to work.
When I run
lk1<- xval(smallG, 'ALL.AML', knnB, xvalMethod='LOO',
group=as.integer(0))
I get the error Error in xval(smallG, "ALL.AML", knnB, xvalMethod =
"LOO", group = as.integer(0)) :
no direct or inherited method for function 'xval' for this call
Any idea what the problem could be?
_______________________________________________
Bioconductor mailing list
Bioconductor at stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/bioconductor
Search the archives:
http://news.gmane.org/gmane.science.biology.informatics.conductor
**********************************************************************
This email and any files transmitted with it are confidentia...{{dropped}}
More information about the Bioconductor
mailing list