Simulation

Simulation results of a EUROMOD tax-benefit system.

Description

example

S = Simulation(obj,settings) create a class with the simulation results of a EUROMOD tax-benefit and other configuration settings.

This class contains simulation results of a EUROMOD tax-benefit system, generated by the method run().

Examples

collapse all

Run the simulation of a EUROMOD tax-benefit system with default optional settings:

mod = euromod("C:\EUROMOD_RELEASES_I6.0+");
data = readtable("SE_2021_b1.txt");
S=run(mod,"SE","SE_2021",data,"SE_2021_b1");
S  
1×1 Simulation with properties:

         outputs: {[19308×282 table]}
        settings: [1×1 struct]
output_filenames: "se_2021_std"
          errors: [2×1 string]

output 1 : [19308x282 table]
  idhh   idperson   idmother   idfather   idpartner   idorighh   idorigperson   dag   dgn   dec
   200     20001          0        0            0        200         20001       74    1     0
   300     30001          0        0            0        300         30001       77    0     0
   300     30002      30001        0            0        300         30002       53    1     0
   400     40001          0        0        40002        400         40001       68    0     0
   400     40002          0        0        40001        400         40002       65    1     0
   500     50001          0        0        50002        500         50001       78    1     0
  ...
    

Object S is a Simulation class storing the simulation output returned by function run.

Compute the mean of disposable income:

mean(S.outputs{1}{:,'ils_dispy'})  

    5.5285e+03
    

Input Arguments

collapse all

A C# object returned from the EUROMOD simulation.

Data Types: C# class

A struct with the simulation configuration settings.

Data Types: struct

Properties

collapse all

Returns a cell array with the table-type simulation results.

Example: S.outputs{1}

Returns the configuration settings used in the simulation such as addons, constantsToOverwrite, extensions, ect.

Example: S.settings

Returns the file-names of simulation outputs.

Example: S.output_filenames

Returns the errors and warnings from the simulation run.

Example: S.errors

Output Arguments

collapse all

A class with results from the simulation of a EUROMOD tax-benefit system.

References

[1] Documentation EUROMOD - Tax-benefit microsimulation model for the European Union.

Extended Capabilities

Introduced in R2023a