get_model_dataframe: Create a Data Frame from Model Fits

View source: R/fitting.R

get_model_dataframeR Documentation

Create a Data Frame from Model Fits

Description

This function generates a data frame summarizing the fits of models to various conditions. It compiles information such as model performance, human performance, and subject count for each condition, creating a comprehensive overview suitable for analysis and visualization.

Usage

get_model_dataframe(fits, conds, cvdat = c())

Arguments

fits

A list of model fitting results, where each element corresponds to a different model. The elements are objects resulting from the optimization process (e.g., using DEoptim).

conds

A list representing the conditions for which the models were fitted. Each element in the list should correspond to a condition and include relevant data such as human item accuracy (HumanItemAcc).

cvdat

An optional list of cross-validation data. If provided, this data is used instead of the data in conds. Default is an empty vector, indicating that conds will be used.

Value

A tibble (data frame) where each row represents a model-condition pair and includes columns for the model name, condition number, condition details, model performance, human performance, and subject count.


kachergis/XSLmodels documentation built on Feb. 25, 2024, 10:43 p.m.