create groups of municipalities within a process

15 views
Skip to first unread message

Ingrid Schockaert

unread,
Oct 24, 2018, 5:43:31 AM10/24/18
to liam2-users
Dear all,

The person entity in my model has a field called “res_id” (id of the municipality of residency). There are 308 municipalities. Sometimes I want to regroup some of these municipalities within a process in order to obtain more stable estimates.


I could create a new variable “res_group_id”, but then in all processes this should be updated. This is rather complicated, especially in the context of internal migration. Each time a person moves, his res_id changes and hence also potentially his res_group_id.


Is there a possibility to use a global (or another way) to identify for each consecutive simulation period, the relation “res_id – res_group_id”? Hope my question is a bit clear. 


thank you in advance,

Ingrid

Gaëtan de Menten

unread,
Nov 9, 2018, 8:14:32 AM11/9/18
to liam2...@googlegroups.com

Hi Ingrid,

 

Sorry for the slow reply. I am very busy on other projects these days. As I said, previously, this will work nicely by using a global array from 0.13 onwards but it probably will not be released in a long time… So your best bet with version 0.12 is either to:

  1. Use a global array but in 0.12 you need to change your residency ids so that they start at 0 and increase without gap in numbers.
  2. Or you can define a new entity for the place of residency with a group_id field corresponding to res_id2 for that place of residency. Then you can declare a link between the two entities and get at the residency group of a person by using the link. Attached is a modified demo example (using that dataset) demonstrating that. I will send you your .csv file with your actual groups modified to work for this example via private mail.

 

Hope it helps,

Gaëtan

 

--
You received this message because you are subscribed to the Google Groups "liam2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liam2-users...@googlegroups.com.
To post to this group, send email to liam2...@googlegroups.com.
Visit this group at https://groups.google.com/group/liam2-users.



Disclaimer: This e-mail may contain confidential information which is intended only for the use of the recipient(s) named above.
If you have received this communication in error, please notify the sender immediately and delete this e-mail from your system.
Please note that e-mail messages cannot be considered as official information from the Federal Planning Bureau.
demo_groupings.yml
demo_import_groupings.yml
Reply all
Reply to author
Forward
0 new messages