RMSE_range: Calculate the Overall RMSE of the Trait Scores, or the RMSE...

View source: R/RMSE_range.R

RMSE_rangeR Documentation

Calculate the Overall RMSE of the Trait Scores, or the RMSE in a Certain Trait Score Range

Description

This function is also for diagnostic purposes, examining which interval on the latent trait continuum does the FC scale demonstrate the best measurement accuracy.

Usage

RMSE_range(true_scores, estimated_scores, range_breaks = NA)

Arguments

true_scores

Actual trait scores

estimated_scores

Estimated trait scores from a specified model

range_breaks

A numeric vector. Specifies which trait scores ranges will the RMSE be calculated

Details

TO BE DONE

Value

If range_breaks is not specified, an overall RMSE numeric value will be returned; else, a named list showing the RMSE in each score range will be returned.

Author(s)

Mengtong Li

Examples

RMSE_range(rnorm(100), rnorm(100))
RMSE_range(rnorm(100), rnorm(100), range_breaks = c(-3, -2, -1, 0, 1, 2, 3))


tspsyched/autoFC documentation built on Oct. 8, 2024, 10:39 p.m.