[R] Package boot, funtion cv.glm

2012-04-10 Thread Motte
Hey all, I need some help with a cross validation. I'm new with R and as well with statistics. I had a group work to create a tool for remote sensing class that extracts the best bands of hyperspectral satellite images that describe vegetation. Its a regression between a linear function of using

Re: [R] Package boot, funtion cv.glm

2012-04-10 Thread Drew Tyre
The key to using cv.glm is that you have to have a fitted model object with all the data to validate. In your case, that would appear to be a model like this: lm(base[,ncol(base)]~NDI) where NDI is calculated from two bands in the dataframe base. However, if the ground truth data is independently