fitted.unrestricted {ImpShrinkage} | R Documentation |
Extract Model Fitted Values
Description
Fitted values based on object unrestricted
.
Usage
## S3 method for class 'unrestricted'
fitted(object, ...)
Arguments
object |
An object of class |
... |
Other arguments. |
Value
A vector of fitted values.
See Also
fitted.restricted
,
fitted.preliminaryTest
,
fitted.improvedpreliminaryTest
,
fitted.stein
,
fitted.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)
fitted(model)
[Package ImpShrinkage version 1.0.0 Index]