R/block.map.matrix.R

Defines functions block.map.matrix

Documented in block.map.matrix

block.map.matrix <-
function( block.cood ){
  X <- matrix(FALSE, nrow = length(block.cood)-1, ncol = length(block.cood)-1 )
  i <- 1
  while( i < length(block.cood) ){  
    j <- i+1
    if( block.cood[j]==1 ){
      # do nothing
    }else{
      while( block.cood[j] == 0 ){
        X[i,j] <- TRUE
        j <- j+1
      }
    }
    i <- i+1
  }
  return(t(X))
}

Try the ldlasso package in your browser

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

ldlasso documentation built on May 30, 2017, 3:05 a.m.