coef.graper: Get estimated coefficients from a graper object

Description Usage Arguments Value Examples

View source: R/coef.graper.R

Description

Function to obtain estimated coefficients from a fitted graper model.

Usage

1
2
## 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

1
2
3
4
5
6
# 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)

graper documentation built on Nov. 8, 2020, 5:45 p.m.