1
1
2
0
ktluser
21. Novta 2008 19:08
ktluser
21. Novta 2008 23:16
48,24
1,5,9,346,194,17
Arial, 15
0,Model Open_assessment_func,2,2,0,1,C:\temp\Open assessment functions.ANA
Population by country
Table(Country)(
61.875822M,82.2178M,45.200737M)
56,32,1
48,24
2,577,314,416,303,0,MIDM
2,5,334,307,146,0,MIDM
65535,52427,65534
2,I,4,2,0,0,4,0,$,0,"ABBREV",0
Area
['Paris','Non-Paris France','Berlin','Bavaria','England','Wales']
56,152,1
48,12
['Paris','Non-Paris France','Berlin','Bavaria','England','Wales']
Country
['France','Germany','Spain']
56,64,1
48,12
2,D,4,2,0,0,4,0,$,0,"ABBREV",0
['France','Germany','Spain']
(data;in1:indextype; weight, marginal)
ICF
Data: variable to be converted into another index.
In1: index to be converted from. Must be an index of Data.
In2: index to be converted to. This is implicit and is not a parameter.
Weight: the weighting parameter. Must be indexed by both In1 and In2.
Marginal: The Data variable may have boundaries along In1 wider than In2. In this case, marginal is the total of the Weight with the same boundaries along In1 as Data. If the boundaries of In1 and In2 are the same, marginal is equal to sum(Weight,In2).
<a href="http://en.opasnet.org/w/Index_conversion_function">Wiki description</a>
var a:= weight/marginal;
sum(data*a,in1)
192,120,1
48,12
2,358,15,572,241
data,in1,weight,marginal
Population by area
var weight:= if country='France' then 1 else Population_by_countr;
icf(Population_by_countr,Country, Population_weight,weight)
200,32,1
48,24
2,664,290,279,199,0,MIDM
2,I,4,2,0,0,4,0,$,0,"ABBREV",0
Population weight
Table(Country,Area1)(
0.035,0.965,0,0,0,0,
0,0,3.4163M,12.522M,0,0,
0,0,0,0,0,0
)
56,120,1
48,24
2,134,430,416,224,0,MIDM
2,323,292,330,195,0,MIDM
65535,52427,65534
[Country,Area1]
[Country,Area1]
2,D,4,2,0,0,4,0,$,0,"ABBREV",0