User Tools

Site Tools


howtos:toolcoding:using_a_relative_propensity

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
howtos:toolcoding:using_a_relative_propensity [2010/11/12 20:58]
shona.weldon created
howtos:toolcoding:using_a_relative_propensity [2010/11/12 20:59]
shona.weldon
Line 3: Line 3:
  
 Given: Given:
-households[uss,​usdt,​th] +   households[uss,​usdt,​th] 
-population[uss,​th]+   ​population[uss,​th]
  
 Want to get: Want to get:
-peoplePerHousehold[uss,​usdt,​th]+   peoplePerHousehold[uss,​usdt,​th]
  
 constraints:​ constraints:​
-population[uss,​th] = sum (households[uss,​usdt,​th] * peoplePerHousehold[uss,​usdt,​th];​ dim=usdt)+   population[uss,​th] = sum (households[uss,​usdt,​th] * peoplePerHousehold[uss,​usdt,​th];​ dim=usdt)
  
 makeup a relative propensity: makeup a relative propensity:
-relPopPersPerHH[usdt] = where each value is related to one of the entries ​+   relPopPersPerHH[usdt] = where each value is related to one of the entries ​
  
 Finally the math to calculate peoplePerHousehold[uss,​usdt,​th] is: Finally the math to calculate peoplePerHousehold[uss,​usdt,​th] is:
howtos/toolcoding/using_a_relative_propensity.txt · Last modified: 2010/11/25 13:20 by shona.weldon