stanreg_dtbl: Get model data from stanreg

Description Usage Arguments Value Examples

Description

Get model data from stanreg

Usage

1
stanreg_dtbl(stanreg, model_frame = FALSE, get_y = FALSE)

Arguments

stanreg

object of class stanreg

model_frame

If TRUE, then extract from $glmod$fr, else use $data.

get_y

logical value. Include the output columns?

Value

data.table

Examples

1
2
stanreg <- example_stanreg()
model_data <- stanreg_dtbl(stanreg, TRUE, TRUE)

iamamutt/SRE documentation built on May 8, 2019, 3:12 a.m.