membershipgrowthdecay

No preview image

1 collaborator

Rng_avatar Ronald Paul Ng (Author)

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by the author
Model was written in NetLogo 6.0.4 • Viewed 69 times • Downloaded 11 times • Run 0 times
Download the 'membershipgrowthdecay' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


WHAT IS IT?

A model to see how membership of the Craft can grow or decline depending on introduction of new members by present members, rate of attrition due to resignation and death.

HOW IT WORKS

Probability of dying is a function of age. With each tick a member's age would grow older by one year, and the probabiltiy of dying is a function of -0.42084975 + 0.00801353*age. r=0.8489 df = 91 p < 0.00001 (calculation based on data from US Social Security website. https://www.ssa.gov/oact/STATS/table4c6.html, last accessed 18/9/2020) The asumption that each year 5% of the members will leave the Craft, observe what might happen.

Another assumption, a lodge with 40 people is able to introduce 4 new members each year, i.e. probability of each member introducint a new member is 0.1

These paramaters coud be changed

HOW TO USE IT

(how to use the model, including a description of each of the items in the Interface tab)

THINGS TO NOTICE

(suggested things for the user to notice while running the model)

THINGS TO TRY

(suggested things for the user to try to do (move sliders, switches, etc.) with the model)

EXTENDING THE MODEL

(suggested things to add or change in the Code tab to make the model more complicated, detailed, accurate, etc.)

NETLOGO FEATURES

(interesting or unusual features of NetLogo that the model uses, particularly in the Code tab; or where workarounds were needed for missing features)

RELATED MODELS

(models in the NetLogo Models Library and elsewhere which are of related interest)

CREDITS AND REFERENCES

(a reference to the model's URL on the web if it has one, as well as any other necessary credits, citations, and links)

Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

Globals [

        ]


turtles-own [
             age
             %NewMember
            ]

to setup
  ca
  reset-ticks
  clear-plot
  crt  40
  [ set shape "person"
    set color blue                 ;; blue = master mason
    setxy random-xcor random-ycor
    set size 2
    set age random 30 + 40
    ;; chance of introducing a new member each year.
    set %NewMember random-normal (likelihood-introduce / 100) 0.1
  ]

  ask n-of 3 turtles [set color white] ;; white = EA or FC
end 

to go
  ; each tick represent 1 year
  ; check for advancement of EA/FC to blue
  ; check for resignation, assuming %resignation


  ; check for additional member. Only MM can introduce new member
  ask turtles with [color = blue] [ if random-float 1 < %NewMember [hatch 1 [ set age random 30 + 30
                                                 set color white
                                                 set shape "person"
                                                 set size 2
                                                 setxy random-xcor random-ycor
                                                 set %NewMember random-normal (likelihood-introduce / 100) 0.1
                                                ]
                                        ]
                                  ]

  ;; check for resignation.
  ask turtles [if random-float 1 < (percent-resigned / 100) [die]
               ]

  ;; check for -> MM
  ask turtles with [color = white] [
                                    if random-float 1 < 0.9  [set color blue]  ; 90% chance of becoming MM in one year
                                   ]

  ;; add 1 year to age and check for deaths
  ask turtles [ set age age + 1
                let probability-of-dying chance-of-dying age
                if random-float 1 < probability-of-dying [die]
               ]


;  draw-histogram
;  plot-EA/FC
  tick
  if count turtles < 7 [stop]  ; if less than 7 members, the lodge dies
  if ticks > 150 [stop]
end 

to-report chance-of-dying [declared-age]
  let %dying -0.42084975 + 0.00801353 * declared-age
  report %dying
end 

to draw-histogram
  histogram [age] of turtles
  set-plot-x-range 30 80
  set-histogram-num-bars 10
end 

to plot-EA/FC
  plot count turtles with [color = white]
end 

There is only one version of this model, created over 3 years ago by Ronald Paul Ng.

Attached files

No files

This model does not have any ancestors.

This model does not have any descendants.