Dear All
my model has 100 healthy people moving over 100 cycle with constant weight of 5. Once a person gets infected, he(she) loses weight at a rate of 0.0168 at each cycle. the probability of a person moving from healthy state to infected state per cycle is 0.108.
My problem is each cycle a proportion moves from healthy to infected e.g:
[pre]
[/pre]
The people in the cycle 2 moving from health to infected have a drop of 0.0168 while people already in infected state have a drop of 2*0.0168.
How to write a macros for this..
PLEASE need help.
my model has 100 healthy people moving over 100 cycle with constant weight of 5. Once a person gets infected, he(she) loses weight at a rate of 0.0168 at each cycle. the probability of a person moving from healthy state to infected state per cycle is 0.108.
My problem is each cycle a proportion moves from healthy to infected e.g:
[pre]
Code:
cycle healthy infected total weight
0 100 0 5*100
1 100-(100*(0.108)) 100*0.108 5(100-(100*(0.108))+((5-0.0168)*0.108)
The people in the cycle 2 moving from health to infected have a drop of 0.0168 while people already in infected state have a drop of 2*0.0168.
How to write a macros for this..
PLEASE need help.