/*##################################################### # Version 1.1.2 # Author: Hannes Serruys # Last updated: 11/30/2025 #####################################################*/ global EUROMOD_COMMAND_VERSION = "1.1.2" // Minimum EUROMOD software version these commands require (keep in sync with euromod.ado). global EUROMOD_CONNECTOR_VERSION = "3.7.10" if "$EUROMOD_PATH" == "" { global EUROMOD_PATH = "C:/Program Files/EUROMOD/Executable" } capture program EM_StataPlugin, plugin using ("$EUROMOD_PATH/StataPlugin.plugin") program define euromod_setinfo, rclass syntax , model(string) country(string) system(string) parId(string) newParValue(string) if "`system'" != "" & "`country'" == "" { di in r "Need country argument in order to identify system." error -1 } if "`parId'" != "" & "`system'" == "" { di in r "Need system argument in order to identify parameter." error -1 } if "`parId'" != "" & "`newParValue'" == "" { di in r "Need parId argument in order to identify parameter." error -1 } di "`newParValue'" if "`parId'" != "" { capture plugin call EM_StataPlugin, "setXmlInfoPar" "`model'" "`country'" "`system'" "`parId'" "`newParValue'" di in r "`errorMessageEM'" if _rc != 0 { qui cd "`wd'" } } else{ exit } // Setting return List Macros plugin call EM_StataPlugin, "setReturnList" foreach local_connector in `return_list_locals_connector' { return local `local_connector' "`rlm`local_connector''" } end