Re: [R] Error message from CV.GLM

2009-01-20 Thread Prof Brian Ripley
Who said the variables were all in the data frame? See this All the variables in 'formula', 'subset' and in '...' are looked for first in 'data' and then in the environment of 'formula' (see the help for 'formula()' for further details) and collected into a data frame. Now y

Re: [R] Error message from CV.GLM

2009-01-20 Thread Max Kuhn
> I have problems with the usage of cv.glm from the boot package. Here are some > parts of the script I wanted to use: > > data <- read.table("selected_2D.csv", header=TRUE, sep=",") > … > glm.fitted <- glm("ydata$ y ~ 1 + density + vsurf_ID6 + vsurf_S ", data=data) > error <- cv.glm(data=data, g

[R] Error message from CV.GLM

2009-01-20 Thread Markus Mühlbacher
Dear list members. I have problems with the usage of cv.glm from the boot package. Here are some parts of the script I wanted to use: data <- read.table("selected_2D.csv", header=TRUE, sep=",") … glm.fitted <- glm("ydata$ y ~ 1 + density + vsurf_ID6 + vsurf_S ", data=data) error <- cv.glm(data