coef {MGLM} | R Documentation |
Extract Model Coefficients
Description
coef
extracts estimated model coefficients of class. coefficients
is an alias for it.
Usage
## S4 method for signature 'MGLMfit'
coef(object)
## S4 method for signature 'MGLMreg'
coef(object)
## S4 method for signature 'MGLMsparsereg'
coef(object)
## S4 method for signature 'MGLMtune'
coef(object)
Arguments
object |
an object for which the extraction of model coefficients is meaningful.
One of the following classes |
Details
Method coef.
Value
Coefficients extracted from the model object object
.
For the class "MGLMtune"
, the function returns model coefficients
based on the optimal tuning parameter.
Examples
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)
[Package MGLM version 0.2.1 Index]