I am applying the cv.glm()
function from the {boot}
package. The command is working perfectly fine, but I am trying to obtain the seed on which the my K fold cross validation was established to be able to reproduce the results. Here's an example (from the MASS package data) of what I have:
data(mammals, package="MASS")
model <- glm(log(brain) ~ log(body), data = mammals)
result <- cv.glm(mammals, model, K=10)
When I execute result$seed
I get a vector of length 626.
What seed have I exactly used here?
Thanks a lot.