R/get.bj.R

get.bj <-
function(c, B, p,j){
         
       Bj=NULL
           for(k in 1:c-1){
            if(c>2 & j<=p*(c-1)){

             Bj=cbind(Bj,B[,j])
             j=j+p
             
            }
            if(c==2){
               Bj=B[,j] 
            }

          }
       
     return(Bj)
}

Try the SODC package in your browser

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

SODC documentation built on May 2, 2019, 3:35 p.m.