Learn R Programming

DMRnet (version 0.4.0)

coef.DMR: coef.DMR

Description

Extracts coefficients from a DMR object.

Usage

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

Value

Vector or matrix of coefficients.

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.

Examples

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

Run the code above in your browser using DataLab