CarOwnershipMNL

class CarOwnershipMNL(carOwnershipUtility: CarOwnershipUtility, minDrivingAge: Int) : CarOwnership

Determines with an MNL model. The MNL model is only used for agent's above the minimum driving age, younger agent's never have car ownership.

Parameters

carOwnershipUtility

Coefficients of the MNL

minDrivingAge

Minimum driving age

Constructors

Link copied to clipboard
constructor(carOwnershipUtility: CarOwnershipUtility, minDrivingAge: Int)

Functions

Link copied to clipboard
open override fun determine(agent: MobiAgent, stratum: PopStratum, rng: Random): Boolean