cv.glm.par: Check predictions of glm by cross validation

View source: R/misc.R

cv.glm.parR Documentation

Check predictions of glm by cross validation

Description

Check predictions of glm by cross validation

Usage

cv.glm.par(
  model,
  data = eval(modelCall$data),
  K = nrow(data),
  nCores = 1,
  subsets = NULL,
  vocal = FALSE
)

Arguments

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

Value

a dataframe giving predictions for each data point with columns prediction and subsetId

Examples

z<-data.frame('x'=1:11,y=c(rnorm(10,1:10),100))
cv.glm.par(glm(y~x,data=z))

sherrillmix/dnar documentation built on July 18, 2022, 10:07 p.m.