R/S.PO.r

Defines functions S.PO

Documented in S.PO

#' @export

S.PO<-function(N,Pik){
sam<-matrix(0,N,1)
U<-runif(N)
for(k in 1:N){
if(U[k]<=Pik[k])
sam[k]<-k
              }
return(sam)
}

Try the TeachingSampling package in your browser

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

TeachingSampling documentation built on April 22, 2020, 1:05 a.m.