Hi Chris,

On Fri, Sep 24, 2010 at 7:04 AM, Chris Mcowen <chrismco...@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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to