View source: R/tidyConvertToProbabilities.R
probabilitiesFromConfusionMatrix | R Documentation |
The purpose of this is to calculate the probabilities of binary outcomes from a table of true pos, true neg, false pos and false neg trials
probabilitiesFromConfusionMatrix(df, tpVar, fpVar, fnVar, tnVar)
df |
a dataframe containing one observation per row |
tpVar |
the datatable column containing frequency of cooccurrence of true positives |
fpVar |
the datatable column containing frequency of occurrence of false positives |
fnVar |
the datatable column containing frequency of occurrence of false negatives |
tnVar |
the datatable column containing frequency of occurrence of true negatives |
the datatable with additional columns for all the probabilities associated with each outcome (i.e. a 2x2 confusion matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.