biogeme_database: Create a Biogeme database

View source: R/database.R

biogeme_databaseR Documentation

Create a Biogeme database

Description

The database remains an R object until a model is compiled. Data are copied and validated at construction time, so later modifications to the original data frame do not alter the model database.

Usage

biogeme_database(name, data)

Arguments

name

Database name.

data

Numeric R data frame.

Details

The input must contain only numeric, named, non-empty columns. The original row identifiers are retained separately from the data columns and are carried through native filtering and row-extraction operations.

Value

An object of class biogeme_database.

Examples

database <- biogeme_database(
  "demo",
  data.frame(choice = c(1, 2), income = c(10, 20))
)
biogeme_database_columns(database)

rbiogeme documentation built on Sept. 29, 2026, 5:09 p.m.