R/rcc.R

Defines functions rcc

Documented in rcc

rcc <- function(Z,R) {
  # Relative citizen congruence
  1 - (sum(abs(Z - median(Z, na.rm=TRUE)))/(sum(abs(Z - median(R, na.rm=TRUE)))))
  }

Try the polrep package in your browser

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

polrep documentation built on Feb. 24, 2018, 3:01 a.m.