Re: [R] cv.lm syntax error

From: Don McKenzie <dmck_at_u.washington.edu>
Date: Tue, 08 Mar 2011 09:40:14 -0800

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



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. Received on Tue 08 Mar 2011 - 17:47:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 08 Mar 2011 - 23:30:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive