544 total view(s), 140 download(s)
MarriageAgeModel-ODD_PrintVersion.pdf(PDF | 26 KB)
MarriageModel-WithErrors.nlogo(NLOGO | 25 KB)
- License terms
Description
Model formulated and implemented by S. F. Railsback
This model is loosely based on the marriage age model of:
Billari, F. C., A. Prskawetz, B. Aparicio Diaz, and T. Fent. 2007. The "wedding-ring": an agent-based marriage model based on social interactions. Demographic Research 17:59-82. Available on-line at: www.demographic-research.org/Volumes/Vol17/3/
However, this model is different from the model of Billari et al. in many important ways and should not be compared to, or treated as equivalent to, their model.
This NetLogo implementation intentionally includes some programming errors as a software testing exercise!! This program is completely independent of the software used by Billari et al.
Launch in NetLogo Download ODD
Cite this work
Researchers should cite this work as follows:
- Railsback, S. F. (2018). Marriage Model (with errors). Agent-Based and Individual-Based Modeling, QUBES Educational Resources. doi:10.25334/Q4Q721
1 Like
Danielle Gagne @ on (Edited: @ on )
Please can you help me with the errors, I tried to complete the code but still I have an error for the dividing by zero.
TIA
Copy link Report abuse
0 Like
Drew LaMar @ on
I might be able to help. Can you attach your nlogo file, either as an edit to your initial comment or as a reply to this one?
- Drew
Copy link Report abuse
0 Like
Danielle Gagne @ on
Dear Drew,
thank you for your response. I am very new to NetLogo but really want to make this code run as it would be very helpful for my research. I have commented the lines which I am unsure about..
TIA,
Danielle
MarriageModel-WithErrors-v2.nlogo
Copy link Report abuse
0 Like
Steven F Railsback @ on
Danielle, please email me using regular email, not QUBES. If you need to, try using the contact info at:
http://www.railsback-grimm-abm-book.com/contact-us/
Steve
Copy link Report abuse
0 Like
Steven F Railsback @ on
Hi Danielle,
I have not been following this thread closely but if you are still stuck send me the specifics at: steve.railsback@humboldt.edu
Steve R.
Copy link Report abuse
0 Like
Danielle Gagne @ on
Dear Steve,
thank you for your response. I am unable to get my email through to you, probably due to external email restrictions. I copy my message below:
thank you very much for reaching out. I am new to NetLogo and wish to study a partnership model with interacting agents, and it would be very helpful to my research to have this model as a first working example.
I understand that the original code is posted with errors for exercise to the user, but unfortunately I haven't been able to work out all the bugs. In particular, I believe that the initial social network size is sometimes equal to zero, thus leading to an error of dividing by zero when calculating the married fraction.
Should I add an ifelse statement to the social-network count, so that if it is zero, the marriage fraction is also equal to zero?
If you could offer me some help in how to fix a solution, I would be ever so grateful.
TIA and kind regards,
Danielle G.
Copy link Report abuse