ef_get_local_fraud: Compute Fraud Distribution

Description Usage Arguments Value

Description

This function returns the estimated posterior distribution of frauds at the individual-level observation

Usage

1
2
ef_get_local_fraud(data, samples, model, elegible.voters = NULL,
  sim_data = NULL)

Arguments

data

the data set used in the estimation

samples

the output of eforensics function

model

a string with the model used in the estimation (e.g., 'rn', 'bl'). See eforensics function

elegible.voters

either NULL (default) or a string with the name of the column containing the number of elegible voters

sim_data

the output of the function ef_simulateData. It is used only if the fraud was estimated using simulated data. If provided, the plot also display the true fraud value. Default NULL

Value

It returns a tibble data.frame with the data points classified into no fraud, incremental, or extreme fraud distribution along with the posterior distribution of fraud for each observation


DiogoFerrari/eforensics documentation built on Aug. 31, 2019, 3:44 p.m.