R/getFactorCombinations.R

Defines functions getFactorCombinations

getFactorCombinations = function(n){
  result = matrix(NA, nrow = n * (n-1) / 2, ncol = 2)
  result[,1] = rep(1:(n-1),(n-1):1)
  result[,2] = unlist(sapply(2:n,seq,to=n))
  result
}

Try the glm.predict package in your browser

Any scripts or data that you put into this service are public.

glm.predict documentation built on May 29, 2024, 1:09 a.m.