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 = fo
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 me
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 `[.dat
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+
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 archi
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.l
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) : undefin
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,
8 matches
Mail list logo