Learn R Programming

PAutilities (version 1.1.0)

get_transition_info: Invoke the Transition Pairing Method

Description

Invoke the Transition Pairing Method

Usage

get_transition_info(predictions, references, window_size = 1, ...)

validate_transition_info_input(predictions, references)

impute_trans(x, out_length)

recode_trans_names(x)

Value

an object of class transition that contains necessary information for evaluating the effectiveness of the predictions.

Arguments

predictions

A dummy-coded vector of predicted transitions (1) interspersed with non-transitions (0). Logical vectors are coerced to numeric.

references

A dummy-coded vector of actual (i.e., reference) transitions (1) interspersed with non-transitions (0). Logical vectors are coerced to numeric.

window_size

The maximum number of indices that are allowed to separate a predicted and reference transition, before the two are considered incompatible

...

additional arguments passed to or from methods, not currently used

See Also

summary.transition

Examples

Run this code
set.seed(100)
predictions <- (sample(1:100)%%2)
references  <- (sample(1:100)%%2)
window_size <- 7
if (isTRUE(requireNamespace("matchingMarkets", quietly = TRUE))) {
  get_transition_info(predictions, references, window_size)
}

Run the code above in your browser using DataLab