model.frame.RprobitB_fit: Extract the fitted data

View source: R/model.R

model.frame.RprobitB_fitR Documentation

Extract the fitted data

Description

Returns the choice data stored in a fitted model as a data.frame.

Usage

## S3 method for class 'RprobitB_fit'
model.frame(formula, ...)

Arguments

formula

[RprobitB_fit]
Fitted choice model.

...

Currently not used.

Value

A data.frame containing the fitted choice data.

Examples

set.seed(1)
model <- fit(
  choice ~ x, dgp_parameters = list(beta = c(x = 1, ASC_B = -0.5)),
  chains = 1
)
head(model.frame(model))

RprobitB documentation built on Sept. 20, 2026, 9:07 a.m.