wleFromRes: Collects all WLEs from the object returned by getResults()

View source: R/fromRes.R

wleFromResR Documentation

Collects all WLEs from the object returned by getResults()

Description

Collects WLEs in a wide data frame.

Usage

wleFromRes(resultsObj, idVarName = NULL, verbose=TRUE)

Arguments

resultsObj

The object returned by getResults.

idVarName

Optional: character vector of individual student id. This is only to provide compatibility with older package versions. Specification of this argument is only necessary if the function gives an error.

verbose

Print messages to console?

Value

A data frame with several columns, model name, student ID, dimension name (several deimensions are grouped among each other), number of solved items per student, total number of items visited per student, WLE estimate and standard error.

Author(s)

Sebastian Weirich

Examples

### read exemplary results object
file <- system.file("extdata", "results.rda", package = "eatModel")
load(file)
wles <- wleFromRes(res)

weirichs/eatModel documentation built on Jan. 26, 2025, 4:01 p.m.