Learn R Programming

glmaag (version 0.0.6)

coef.cv_glmaag: Coefficients

Description

Get the coefficients estimated by the cv_glmaag model

Usage

# S3 method for cv_glmaag
coef(object, type1se = T, ...)

Arguments

object

the estimated cv_glmaag model

type1se

whether or not used 1 SE error (default to be TRUE)

...

Value

estimated coefficient included intercept (Cox model does not return intercept)

Examples

Run this code
# NOT RUN {
data(sampledata)
data(L0)
y <- sampledata$Y_Gau
x <- sampledata[, -(1:3)]
cvwhich <- sample(rep(0:4, length.out = length(y)))
mod <- cv_glmaag(y, x, L0, cvwhich = cvwhich)
cc <- coef(mod)
# }

Run the code above in your browser using DataLab