weighted_random_selects_form.xls
 Share
The version of the browser you are using is no longer supported. Please upgrade to a supported browser.Dismiss

 
View only
 
 
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
typenamelabelrepeat_countcalculation
2
integerA2A2. How many families live here?
3
begin repeat  type_check${A2} 
4
select_one typeA1A1. Are you refugees or citizens?
5
textA3A3. Enter family name
6
calculateweightsif(${A1}=1,0.6,0.4)
7
calculaterandomiseonce(random()) 
8
calculateproduct${randomise}*${weights}
9
notew_disThe weight assigned is: ${weights}
10
noter_disThe random number is: ${randomise}
11
notep_disThe product of the weight and random number is: ${product}
12
end repeat
13
calculatemax_productmax(${product})
14
notem_disThe maximum product generated is: ${max_product}
15
begin repeat  check_max${A2} 
16
calculatepos_prodposition(..)
17
calculatename_compindexed-repeat(${A3},${type_check},${pos_prod})
18
calculateprod_compindexed-repeat(${product},${type_check},${pos_prod})
19
calculatedisplay_compif(${prod_comp}=${max_product},${name_comp},"")
20
end repeat
21
calculateselected_namejoin(' ',${display_comp})
22
noteinterviewee**Please Interview:** ${selected_name}
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Loading...
 
 
 
survey
settings
choices