[R] cv.lm syntax error

Don McKenzie dmck at u.washington.edu
Tue Mar 8 18:40:14 CET 2011


Your message subject says it all.  The function is "cv.lm()".   Also  
check the syntax for data.frame()

On 8-Mar-11, at 8:47 AM, agent dunham wrote:

> Thanks for your answer, but I type the following:
>
>> dfmod.1 <- data.frame(dat$v1,dat$v2,dat$v3,dat$v4, dat$v5,factor)
>
>> CVlm(df= dfmod.1, form.lm = formula(dat$v1 ~ dat$v2+dat$v3+ dat$v4+
>> dat$v5+ factor), m=3, seed=29, plotit=TRUE, printit =TRUE)
>
> Error en `[.data.frame`(df, , ynam) : undefined columns selected
>
> What does it mean?
>
> user at host.com
>
> --
> View this message in context: http://r.789695.n4.nabble.com/cv-lm- 
> syntax-error-tp3334889p3341767.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.

Why does the universe go to all the bother of existing?
-- Stephen Hawking

#define QUESTION ((bb) || !(bb))
-- William Shakespeare



Don McKenzie, Research Ecologist
Pacific WIldland Fire Sciences Lab
US Forest Service

Affiliate Professor
School of Forest Resources, College of the Environment
CSES Climate Impacts Group
University of Washington

desk: 206-732-7824
cell: 206-321-5966
dmck at uw.edu
donaldmckenzie at fs.fed.us



More information about the R-help mailing list