coef.graper {graper} | R Documentation

## Get estimated coefficients from a graper object

### Description

Function to obtain estimated coefficients from a fitted graper model.

### Usage

    ## S3 method for class 'graper'
    coef(object, include_intercept = TRUE, ...)

### Arguments

`object` | fitted graper model as obtained from `graper`
`include_intercept` | whether to include the estimated intercept value in the output
`...` | other arguments

### Value

1-Column matrix of estimated coefficients.

### Examples

    # create data
    dat <- makeExampleData()
    # fit the graper model to the data
    fit <- graper(dat$X, dat$y, dat$annot)
    # extract the model coefficients
    coef(fit)

[Package graper version 1.10.0 Index]