[R] cv.binary

Steve Lianoglou mailinglist.honeypot at gmail.com
Fri Sep 24 15:20:38 CEST 2010


Hi Chris,

On Fri, Sep 24, 2010 at 7:04 AM, Chris Mcowen <chrismcowen at gmail.com> wrote:
> Dear List,
>
> I am looking to perform a cross validation on my glm using the cv.binary function in DAAG.
>
> However i am getting the following error -
>
>> > cv.binary(modelhe)
>> Error in sample(nfolds, m, replace = TRUE) : invalid 'size' argument

What is stored in m?

R> sample(1:10, 'a', replace=TRUE)
Error in sample(1:10, "a", replace = TRUE) : invalid 'size' argument

-steve

-- 
Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact



More information about the R-help mailing list