coef: Extract coefficients from fitted model

Description Usage Arguments Value Examples

Description

Extract coefficients from fitted model for either a 'smle' or 'selection' object.

Usage

1
2
3
4
5
## S3 method for class 'smle'
coef(object, ...)

## S3 method for class 'selection'
coef(object, ...)

Arguments

object

Returned object from either the function SMLE() or smle_select().

...

This argument is not used and listed for method consistency.

Value

Fitted coefficients based on the screened or selected model specified in the object.

Examples

1
2
3
4
5
6
set.seed(1)
Data<-Gen_Data(n=100, p=5000, family = "gaussian", correlation="ID")
fit<-SMLE(Y=Data$Y, X=Data$X, k=15, family = "gaussian")
coef(fit)
fit_s<-smle_select(fit)
coef(fit_s)

SMLE documentation built on Oct. 1, 2021, 5:07 p.m.