biogeme_database_panel: Declare and validate a panel identifier

View source: R/database.R

biogeme_database_panelR Documentation

Declare and validate a panel identifier

Description

Declare and validate a panel identifier

Usage

biogeme_database_panel(database, panel_id)

Arguments

database

A biogeme_database object.

panel_id

Name of the panel identifier column.

Details

The identifier must be numeric and finite. Observations belonging to one identifier must be contiguous; the constructor rejects interleaved panel rows rather than silently reordering them.

Value

A new panel database specification.

Examples

panel_database <- biogeme_panel_database(
  "panel_demo",
  data.frame(person = c(1, 1, 2, 2), choice = c(1, 2, 2, 1)),
  panel_id = "person"
)
biogeme_database_is_panel(panel_database)

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