Learn R Programming

MGLM (version 0.2.1)

coef: Extract Model Coefficients

Description

coef extracts estimated model coefficients of class. coefficients is an alias for it.

Usage

# S4 method for MGLMfit
coef(object)

# S4 method for MGLMreg coef(object)

# S4 method for MGLMsparsereg coef(object)

# S4 method for MGLMtune coef(object)

Arguments

object

an object for which the extraction of model coefficients is meaningful. One of the following classes "MGLMfit", "MGLMreg", "MGLMsparsereg", "MGLMtune"

Value

Coefficients extracted from the model object object.

For the class "MGLMtune", the function returns model coefficients based on the optimal tuning parameter.

Details

Method coef.

Examples

Run this code
# NOT RUN {
library("MGLM")
data("rnaseq")
data <- rnaseq[, 1:6]
mnreg <- MGLMreg(formula = cbind(X1, X2, X3, X4, X5, X6) ~ log(totalReads) + 
treatment + age + gender, data = rnaseq, dist = "MN")
coef(mnreg)
# }

Run the code above in your browser using DataLab