.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/hybrid_choice_models/likert_spec.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_hybrid_choice_models_likert_spec.py: Likert indicators and Likert types (SPEC ONLY) Pure semantic indicator declarations Michel Bierlaire Sat Mar 14 2026, 16:26:11 .. GENERATED FROM PYTHON SOURCE LINES 8-92 .. code-block:: Python from biogeme.latent_variables import LikertIndicator, LikertType likert_indicators = [ LikertIndicator( name="Envir01", statement="Fuel price should be increased to reduce congestion and air pollution.", type_name="likert", ), LikertIndicator( name="Envir02", statement="More public transportation is needed, even if taxes are set to pay the additional costs.", type_name="likert", ), LikertIndicator( name="Envir03", statement="Ecology disadvantages minorities and small businesses.", type_name="likert", ), LikertIndicator( name="Envir04", statement="People and employment are more important than the environment.", type_name="likert", ), LikertIndicator( name="Envir05", statement="I am concerned about global warming.", type_name="likert", ), LikertIndicator( name="Envir06", statement="Actions and decision making are needed to limit greenhouse gas emissions.", type_name="likert", ), LikertIndicator( name="Mobil03", statement="I use the time of my trip in a productive way.", type_name="likert", ), LikertIndicator( name="Mobil05", statement="I reconsider frequently my mode choice.", type_name="likert", ), LikertIndicator( name="Mobil08", statement="I do not feel comfortable when I travel close to people I do not know.", type_name="likert", ), LikertIndicator( name="Mobil09", statement="Taking the bus helps making the city more comfortable and welcoming.", type_name="likert", ), LikertIndicator( name="Mobil10", statement="It is difficult to take the public transport when I travel with my children.", type_name="likert", ), LikertIndicator( name="Mobil12", statement="It is very important to have a beautiful car.", type_name="likert", ), LikertIndicator( name="LifSty01", statement="I always choose the best products regardless of price.", type_name="likert", ), LikertIndicator( name="LifSty07", statement="The pleasure of having something beautiful consists in showing it.", type_name="likert", ), ] likert_types = [ LikertType( type_name="likert", symmetric=True, categories=[1, 2, 3, 4, 5], neutral_labels=[6, -1], ), ] .. _sphx_glr_download_auto_examples_hybrid_choice_models_likert_spec.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: likert_spec.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: likert_spec.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: likert_spec.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_