formula.RprobitB_fit: Extract the fitted formula

View source: R/model.R

formula.RprobitB_fitR Documentation

Extract the fitted formula

Description

Returns the normalized three-part model formula stored in a fitted model.

Usage

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

Arguments

x

[RprobitB_fit]
Fitted choice model.

...

Currently not used.

Value

A formula object.

Examples

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

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