code_threeway: simpler version of dyad agreement, intended for long form...

View source: R/compute-agreement.R

code_threewayR Documentation

simpler version of dyad agreement, intended for long form where office is set

Description

simpler version of dyad agreement, intended for long form where office is set

Usage

code_threeway(data, var1, var2)

Arguments

data

dataset

var1

first variable of Y, N, DK, or D,R

Examples

df <- tibble(pid_self =   c("D", "R", "I", "D"),
             pid_actl =   c("R", "R", "R", "D"),
             issue_self = c("Y", "N", "DK", "N"),
             issue_actl = c("N", "N", "N", "Y"))

code_threeway(df, pid_self, pid_actl)
code_threeway(df, issue_self, issue_actl)

code_threeway()


kuriwaki/rcces documentation built on Sept. 12, 2023, 5:31 p.m.