coef.dglars: Extract the path of the coefficients

Description Usage Arguments Value Author(s) See Also Examples

Description

coef.dglars is used to extract the path of the coefficients computed using the dgLARS method.

Usage

1
2
## S3 method for class 'dglars'
coef(object, ...)

Arguments

object

fitted dglars object

...

additional arguments

Value

coef.dglars returns a matrix with the solution path computed using the dgLARS method.

Author(s)

Luigi Augugliaro
Maintainer: Luigi Augugliaro luigi.augugliaro@unipa.it

See Also

dglars function.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
######################
# Logistic regression model

set.seed(123)

n <- 100
p <- 10
X <- matrix(rnorm(n*p), n, p)
b <- 1:2
eta <- b[1] + X[,1] * b[2]
mu <- binomial()$linkinv(eta)
y <- rbinom(n, 1, mu)
fit <- dglars.fit(X, y, family = "binomial")
coef(fit)


Search within the dglars package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.