R/COR_AUX.R

########################################################################
# COR AUX FUNCTIONS
########################################################################
cor.aux.func <- function(x, y, svydes){
  withReplicates(svydes, function(w,data)
    cov.wt(cbind(x, y), 
           wt=w, cor =TRUE)$cor[1,2])}

Try the svyPVpack package in your browser

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

svyPVpack documentation built on May 1, 2019, 8:45 p.m.