Skip to content

Instantly share code, notes, and snippets.

@ryan-hill
Last active September 18, 2015 20:33
Show Gist options
  • Save ryan-hill/d198963f227185f4f144 to your computer and use it in GitHub Desktop.
Save ryan-hill/d198963f227185f4f144 to your computer and use it in GitHub Desktop.
#predData is dataframe of predictor variable where 1st column is a unique site ID
vect = names(predData)[2:length(predData)]
combos = cbind(combn(vect, 2)[1,], combn(vect, 2)[2,])
#Useful for comparing pairwise combo models
combos = data.frame(combos); combos$AUC <- 0.0
names(combos) <- c('Pred1','Pred2','AUC')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment