R/intfind.R

Defines functions `intfind`

`intfind` <-
function(i,j,mat){
     ## function for finding the correct interaction coefficient 
     ## to be used in function iap
     sp <- NULL
     for (k in 1:ncol(mat)){
          if (!all(mat[,k]==c(i,j))) next 
          else sp <- k
          break
          }
     sp
    }

Try the FrF2 package in your browser

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

FrF2 documentation built on Sept. 20, 2023, 9:08 a.m.