rm_interpreter {mmirestriktor} | R Documentation |
Interpret Results of Restricted Means Analysis
Description
This function provides a human-readable interpretation of the results of a restricted means analysis. It compares the original (unconstrained) and reduced (restricted) R-squared values to evaluate the imposed constraints. It also returns the Generalized Order-Restricted Information Criterion (GORIC) which can be used for model comparison.
Usage
rm_interpreter(rm_res)
Arguments
rm_res |
An object of class 'restriktor', typically the result of a call
to |
Value
A character string with an interpretation of the analysis results, including the R-squared values, their reduction, and the Generalized Order-Restricted Information Criterion (GORIC) if available.
References
Vanbrabant, L., & Rosseel, Y. (2020). An Introduction to Restriktor: Evaluating informative hypotheses for linear models. In Small Sample Size Solutions (1st ed., p. 16). Routledge.
See Also
restriktor
for generating 'restriktor' objects.
Examples
model <- mmir_model(mpg ~ -1 + hp + wt, data = mtcars, engine = "lm",
standardize = TRUE)
rm_res <- restriktor::restriktor(model, constraints = 'hp < wt')
rm_interpreter(rm_res) |> cat()