remove_subsets: removes subsets or supersets of item combinations

View source: R/remove_subsets.R

remove_subsetsR Documentation

removes subsets or supersets of item combinations

Description

removes subsets or supersets of item combinations

Usage

remove_subsets(obj, keep_longest = FALSE)

Arguments

obj

either a list of vectors of item combinations (typically the passed_combos slot of an object of class passed_exRa or an object of passed_exRa-class. If combos is an object of passed_exRa-class, all process data (the process slot) and for any removed item combination also the fit models in the passed_models slot will be removed.

keep_longest

boolean; if TRUE, the respective superset is kept (and all subsets of these supersets are removed), if FALSE all subsets is kept (and supersets of these subsets are removed).

Value

depending of the class of obj, either a list of numeric vectors containing the remaining item combinations or an object of passed_exRa-class with the remaining item combinations, fit models and information criteria, but without the process information.

Examples


  library(exhaustiveRasch)
  data(ADL)
  passed_ADL <- exhaustive_tests(dset=ADL[1:15], scale_length=4:5,
    modelType= "RM", na.rm=TRUE, tests= c("test_LR"),
    splitcr_LR = ADL[,17], estimation_param = estimation_control())
  passed_shortest <- remove_subsets(passed_ADL, keep_longest=FALSE)
 

exhaustiveRasch documentation built on April 3, 2025, 6:18 p.m.