Re: [R] cv.lm syntax error

2011-03-17 Thread agent dunham
I rewrite my previous comand, CVlm works now. It was related to having the same names in the df than in the formula included at CVlm . Now I'd like to know if the seed is of any special importance, or I can type just seed=29 like in the example. Thanks in advance, u...@host.com -- View this

Re: [R] cv.lm syntax error

2011-03-17 Thread agent dunham
I rewrite my previous comand, CVlm works now. It was related to having the same names in the df than in the formula included at CVlm . Now I'd like to know: Q1: if the seed is of any special importance, or I can type just seed=29 like in the example? Q2: I typed: CVlm(df = mydf, form.lm =

Re: [R] cv.lm syntax error

2011-03-09 Thread John Maindonald
AEDT To: r-help@r-project.org Subject: Re: [R] cv.lm syntax error 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

Re: [R] cv.lm syntax error

2011-03-09 Thread agent dunham
Yea, sorry, that's what I mean, and v1,...,v5 and factor have the same length, that's why I don't understand the error dfmod.1 - data.frame(v1,v2,v3,v4, v5,factor) CVlm(df= dfmod.1, form.lm = formula(v1 ~ v2+v3+ v4+ v5+ factor), m=3, seed=29, plotit=TRUE, printit =TRUE) Error en

Re: [R] cv.lm syntax error

2011-03-08 Thread agent dunham
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

Re: [R] cv.lm syntax error

2011-03-08 Thread Don McKenzie
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

Re: [R] cv.lm syntax error

2011-03-08 Thread agent dunham
But I read in the forum that cv.lm is not for multiple regression, that's why i change it ti CVlm, however i fell to the same error u...@host.com -- View this message in context: http://r.789695.n4.nabble.com/cv-lm-syntax-error-tp3334889p3342333.html Sent from the R help mailing list

[R] cv.lm syntax error

2011-03-04 Thread agent dunham
Dear all, I've tried a multiple regression, and now I want to try a cross-validation. I obtain this error (it must be sth related to df) that I don't understand, any help would be appreciated. cv.lm(df= dat, lm2.52f, m=3) Error en `[.data.frame`(df, , ynam) : undefined columns selected

Re: [R] cv.lm syntax error

2011-03-04 Thread Uwe Ligges
On 04.03.2011 10:11, agent dunham wrote: Dear all, I've tried a multiple regression, and now I want to try a cross-validation. I obtain this error (it must be sth related to df) that I don't understand, any help would be appreciated. cv.lm(df= dat, lm2.52f, m=3) Error en `[.data.frame`(df,