Description Usage Arguments Value
This function returns the estimated posterior distribution of frauds at the individual-level observation
1 2 | ef_get_local_fraud(data, samples, model, elegible.voters = NULL,
sim_data = NULL)
|
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 |
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 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.