coefficients.unrestricted {ImpShrinkage} | R Documentation |
Coefficients extracted from the model object unrestricted
.
## S3 method for class 'unrestricted'
coefficients(object, ...)
## S3 method for class 'unrestricted'
coef(object, ...)
object |
An object of class |
... |
Other arguments. |
A vector of coefficients.
coefficients.restricted
,
coefficients.preliminaryTest
,
coefficients.improvedpreliminaryTest
,
coefficients.stein
,
coefficients.positivestein
,
coef.restricted
,
coef.preliminaryTest
,
coef.improvedpreliminaryTest
coef.stein
,
coef.positivestein
.
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)
coefficients(model)
coef(model)