model_frame: Construct Design Matrices for flexreg Objects

View source: R/ModelMatrix.R

model_frameR Documentation

Construct Design Matrices for flexreg Objects

Description

Method for extracting design matrix from fitted regression model objects of class `flexreg`.

Usage

model_frame(object, ...)

Arguments

object

an object of class `flexreg`, usually the result of flexreg or flexreg_binom functions.

...

additional arguments. Currently not used.

Details

The method returns a list containing all the design matrices involved in the regression models, namely `X` (regression on the mean), `Z` (regression on the precision or overdispersion parameters), `X0` (regression on the augmentation in zero probability), and/or `X1` (regression on the augmentation in one probability).

Examples

## Not run: 
data("Reading")
FB <- flexreg(accuracy.adj ~ iq, data = Reading, n.iter = 1000)
model.frame(FB)

## End(Not run)


FlexReg documentation built on Sept. 9, 2025, 5:49 p.m.