Learn R Programming

FlexReg (version 1.4.2)

model_frame: 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

Run this code
if (FALSE) {
data("Reading")
FB <- flexreg(accuracy.adj ~ iq, data = Reading, n.iter = 1000)
model.frame(FB)
}

Run the code above in your browser using DataLab