Skip to contents

Optimizes ENA models by identifying the best subset of codes to maintain model performance while reducing complexity.

Usage

pria(
  x,
  remove.num,
  method = c("greedy", "beam", "pairwise", "brute"),
  width = 3,
  min_gof = 0.5,
  correlation_fun = correlations
)

Arguments

x

An ena.set object.

remove.num

Integer. Number of codes to remove.

method

Selection strategy: "greedy", "beam", "pairwise", or "brute".

width

Beam width (default 3). Only used for beam search.

min_gof

Minimum Goodness of Fit threshold (default 0.5).

correlation_fun

Function to calculate correlations.