residuals.unrestricted {ImpShrinkage} | R Documentation |
Extract Model Residuals
Description
Residuals values based on model object unrestricted
.
Usage
## S3 method for class 'unrestricted'
residuals(object, ...)
Arguments
object |
An object of class |
... |
Other arguments. |
Value
A vector of residuals.
See Also
residuals.restricted
,
residuals.preliminaryTest
,
residuals.improvedpreliminaryTest
residuals.stein
,
residuals.positivestein
.
Examples
n_obs <- 100
p_vars <- 5
beta <- c(2, 1, 3, 0, 5)
simulated_data <- simdata(n = n_obs, p = p_vars, beta)
X <- simulated_data$X
y <- simulated_data$y
model <- unrReg(X, y)
residuals(model)
[Package ImpShrinkage version 1.0.0 Index]