Displaying 1 result from an estimated 1 matches for "avg_nem".
2008 Jun 09
1
Cross-validation in R
...e version I
only use the "test" database. I am confused if the cv.glm generates new glm
models for each simulation of if it uses the one provided?
(3) is the cv.glm sampling using replacement = TRUE or not?
Thanks in advance.
LOT
***** cv.glm method
glm0.dmi<-glm(DMI_kg~Sex+DOF+Avg_Nem+In_Wt)
# Simulation for 50 re-samplings...
perr1.vect<-vector()
for (j in 1:50)
{
print(j)
cv.dmi<-cv.glm(data.dmi, glm0.dmi, K = 10)
perr1<-cv.dmi$delta[2]
perr1.vect<-c(perr1.vect,perr1)
}
x11()
hist(perr1.vect)
mean(perr1.vect)
sd(perr1.vect)
***** homemade meth...