rasch_split {whomds}R Documentation

Split survey items by categories for a Rasch Model

Description

Split survey items by categories for a Rasch Model

Usage

rasch_split(df, vars_metric, split_strategy, max_values)

Arguments

df

a data frame of individual survey data, where each row is an individual

vars_metric

a character vector of items to use in the Rasch Analysis

split_strategy

a named list giving the strategy to take for splitting variables by categories, passed to rasch_split(). One element of the list per variable to split by. Each element of the list must be a character vector of column names to split. The names of the list are the variables to split each group of variables by. Default is NULL, to not split items.

max_values

a tibble with two columns, var equivalent to vars_metric and max_val with their corresponding maximum possible values

Details

If significant differential item functioning (DIF) is observed, it may be desirable to split variables based on the characteristic for which DIF is observed. For example, if men and women have significantly different patterns of responses to items, then it may be desirable to split items by sex. This function performs that variable splitting.

Value

a named list with:

df

new df after splitting the desired variables

vars_metric

new vars_metric after splitting the desired variables

max_values

new max_values after splitting the desired variables

See Also

Other rasch functions: rasch_DIF(), rasch_df_nest(), rasch_drop(), rasch_factor(), rasch_mds_children(), rasch_mds(), rasch_model_children(), rasch_model(), rasch_quality_children_print(), rasch_quality_children(), rasch_rawscore(), rasch_recode(), rasch_rescale_children(), rasch_rescale(), rasch_split_age(), rasch_testlet()

Other children analysis functions: rasch_df_nest(), rasch_drop(), rasch_mds_children(), rasch_model_children(), rasch_quality_children_print(), rasch_quality_children(), rasch_recode(), rasch_rescale_children(), rasch_split_age(), rasch_testlet()


[Package whomds version 1.1.1 Index]