depending on social mobility slider, people can move from one economic class to another (albeit slowly) 0001 * random-float 1) - (social_mobility *. Set male_economic_class max ( list (min (list(male_economic_class + (social_mobility *. [set male_weight newmale_weight all weights update at once [set newfemale_weight (female_weight + random-float. [set newfemale_weight (female_weight - random-float. Set female_healthy_seen (count males in-radius female_vision with [BMI_male (20)) [set female_total_seen count males in-radius female_vision + count females in-radius female_vision 4 * (max (list(min (list (random-normal female_economic_class. [set female_attitude (female_pride-shame - 2 * gratification-remorse) ]Īsk females female procedure is identical to males above Set just-exercised 1] people at or below BMI of 20 will fluctuate around their current weight [set newmale_weight (male_weight + random-float. Set just-exercised 1] people above BMI of 20 will continue to lose weight when engaging in healthy behavior [set newmale_weight (male_weight - random-float. Recolor-turtles recalculate BMI and assign new categoriesĮnd to move-turtles this allows turtles to move in a random direction Update-turtles give them their new weight all at once set global variables to appropriate valuesĪsk patches set patches to color pink end to goĮxercise-turtles exercise is used to mean "engage in healthy behavior (i.e. Newfemale_weight calculation of new female weight after each tick Newmale_weight calculation of new male weight after each tick Male_intention indicates a males total likelihood to engage in healthy behaviorįemale_intention indicates a females total likelihood to engage in healthy behavior Male_subjective_norm indicates a males SN valueįemale_subjective_norm indicates a females SN value Male_healthy_seen indicates if a healthy male is seenįemale_healthy_seen indicates if a healthy female is seen Male_total_seen total number of males seen in turtle's visionįemale_total_seen total number of females seen in turtle's vision Male_pbc male perceived behavioral controlįemale_pbc female perceived behavioral control Male_attitude individual attitude towards health(exercise)įemale_attitude individual attitude towards health(exercise) Male_economic_class males are placed in an intial economic classįemale_economic_class females are placed in an intial economic class Male_weight the weight of a male person in kgįemale_weight the weight of a female person in kgīMI_male the body mass index of a male to indicate underweight, healthy, overweight or obeseīMI_female the body mass index of a female to indicate underweight, healthy, overweight or obese If heat-stress = false Īsk peanuts Įnd to infect_kernels infection of peanut kernels depends on both use of water stress of the the plant and pesticide use.Male_height_squared how tall a male person is in metres squared for calculation of BMIįemale_height_squared how tall a female person is in metres squared for calculation of BMI If heat-stress = true water stressed plants will add pods more slowly If (pcolor = orange) and (pesticide-use = true) and (random 100 < 5)Įnd to add_pods we add pods based on how many days we are into the growing season. Ifelse (pcolor = orange) and (pesticide-use = false) and (random 100 < 50) we assume plant infection is more likely if pesticides are not used. However, the probability depends partly on whether pesticides are used to prevent plant disease and other pests in the first place note that infection of plants is a stochastic process. Peanuts-own Īsk patches Īsk patches with assume peanut harvest after 9-120 days
0 Comments
Leave a Reply. |