Description Usage Arguments Details Value See Also
View source: R/row_pair_apply.R
Using rowPairApply, this can generate a column with the correct probability that row 1 > row 2 for each row pair in the test_data. It can do this using the criterion column passed in. By default, the output column is called "ProbGreater," but you can override the name with output_column_name.
1 | probGreater(criterion_col, output_column_name = "ProbGreater")
|
criterion_col |
The integer index of the criterion in test_data. |
output_column_name |
An optional string |
Note this uses a very simplistic "probability" which only looks at the current row pair. It does not look at all sets of row pairs with the same profile.
An object that implements createFunction. Users will generally not use this directly– rowPairApply will.
heuristicsProb
is the wrapper to get the predicted probability
that the first row in the row pair is greater, with output for each fitted
heuristic passed to it.
rowPairApply
which has examples of using this.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.