Support

Support Options

  • Knowledge Base

    Find information on common questions and issues.

  • Support Messages

    Check on the status of your correspondences with members of the QUBES team.

Contact Us

About you
About the problem
Resource Image

Marriage Model (with errors)

Author(s): Steven F Railsback

Lang Railsback & Associates

463 total view(s), 116 download(s)

6 comment(s) (Post a comment)

Summary:
Marriage age model for use with NetLogo and ABM material

Licensed under these terms

Version 1.0 - published on 26 Oct 2018 doi:10.25334/Q4Q721 - cite this

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:

Comments

  1. 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

    Your reply
    No attachment

    Your edits
    No attachment

    1. 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

      Your reply
      No attachment

      Your edits
      No attachment

      1. 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

        Copy link Report abuse

        Your reply
        No attachment

        Your edits
        MarriageModel-WithErrors-v2.nlogo

        1. 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

          Your reply
          No attachment

          Your edits
          No attachment

        2. 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

          Your reply
          No attachment

          Your edits
          No attachment

          1. 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

            Your edits
            No attachment