filter_standard_cev: Filter records to replicate results presented in the CEV...

View source: R/filter_standard_cev.R

filter_standard_cevR Documentation

Filter records to replicate results presented in the CEV methodology report.

Description

Filter records to replicate results presented in the CEV methodology report.

Usage

filter_standard_cev(replicates_data, violation, perp_change = TRUE)

Arguments

replicates_data

A data frame with data from all replicates to be filtered.

violation

Violation to be analyzed. Options are "homicidio", "secuestro", "reclutamiento", and "desaparicion".

perp_change

A logical value indicating whether victims in years after 2016 with perpetrator values (indicated by p_str) of the FARC-EP ("GUE-FARC") should be reassigned to other guerrilla groups (p_str value "GUE-OTRO").

Value

A filtered data frame.

Examples


local_dir <- system.file("extdata", "right", package = "verdata")
replicates_data <- read_replicates(local_dir, "reclutamiento", c(1, 2), version = "v1")
filter_standard_cev(replicates_data, "reclutamiento", perp_change = TRUE)


verdata documentation built on June 8, 2025, 11:46 a.m.