R/polarization.R

polarization <-
function (V, old=FALSE) {
   # Calculates polarization (SOM Project)
   # Arguments: as Agreement function (V = frequnecy vector)
   p <- (1 - agreement(V,old))/2  # pass arguments to agreement function, rescale
   return(p)
   }

Try the agrmt package in your browser

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

agrmt documentation built on Nov. 23, 2023, 1:07 a.m.