Learn R Programming

ImpShrinkage (version 1.0.0)

coefficients.unrestricted: Extract Model Coefficients

Description

Coefficients extracted from the model object unrestricted.

Usage

# S3 method for unrestricted
coefficients(object, ...)

# S3 method for unrestricted coef(object, ...)

Value

A vector of coefficients.

Arguments

object

An object of class unrestricted.

...

Other arguments.

See Also

coefficients.restricted, coefficients.preliminaryTest, coefficients.improvedpreliminaryTest, coefficients.stein, coefficients.positivestein, coef.restricted, coef.preliminaryTest, coef.improvedpreliminaryTest coef.stein, coef.positivestein.

Examples

Run this code
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)

Run the code above in your browser using DataLab