Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. def currentUtility(self,work,x,edu,lw,mar,wsh,ush) :
  2. """ returns the utility from the current period"""
  3. if work==0 :
  4. return ??
  5. else :
  6. return ??
  7.  
  8. def _choiceSpecificValue(self,work,time,x,edu,lw,mar,wsh,ush) :
  9. """ returns the choice specific value function
  10. first argument is the choice
  11. """
  12. equation (8)
  13.  
  14. def _valueNoOffer(self,time,x,edu,lw,mar,wsh,ush) :
  15. """ value for those that do not receive an offer """
  16. equation (7)
  17.  
  18. def _valueOffer(self,time,x,edu,lw,mar,wsh,ush) :
  19. """ value for those that receive an offer """
  20. equation (7)
  21.  
  22. def _EV_NoOffer(self,time,x,edu,lw,mar,wsh,ush) :
  23. """ returns expected value if don't receive an offer
  24. for a given vector of state variables
  25. """
  26. # nothing to integrate here because if no work, shocks don't affect utility
  27. # keep it anyway if needed in future
  28. EV component of equation (8)
  29.  
  30. def _EV_Offer(self,time,x,edu,lw,mar,ush,wsh) :
  31. """ expected value if receives an offer
  32. for a given vector of state variables
  33. """
  34. EV
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement