| cv.glm.par | R Documentation | 
Check predictions of glm by cross validation
cv.glm.par( model, data = eval(modelCall$data), K = nrow(data), nCores = 1, subsets = NULL, vocal = FALSE )
| model | a glm to cross validate | 
| data | data for the model | 
| K | number of pieces to split data into | 
| nCores | number of cores to use | 
| subsets | predefined subset of same length as data specifying groupings | 
| vocal | echo progress indicator | 
a dataframe giving predictions for each data point with columns prediction and subsetId
z<-data.frame('x'=1:11,y=c(rnorm(10,1:10),100))
cv.glm.par(glm(y~x,data=z))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.