coef.DMR {DMRnet}R Documentation

coef.DMR

Description

Extracts coefficients from a DMR object.

Usage

## S3 method for class 'DMR'
coef(object, df = NULL, ...)

Arguments

object

Fitted DMR object.

df

Number of parameters in the model for which coefficients are required. Default is the entire path of models.

...

Further arguments passed to or from other methods.

Details

Similar to other coef methods, this function extracts coefficients from a fitted DMR object.

Value

Vector or matrix of coefficients.

Examples

data(miete)
y <- miete[,1]
X <- miete[,-1]
m <- DMR(X, y)
coef(m, df = 12)

[Package DMRnet version 0.4.0 Index]