Hello John,
Here is another method, probably a little more laborious than the previous one but perhaps a little more intuitive.
It is useful to think of data in arrays, for example like this:
For latent heat:
i↓ j→ |
24 |
22 |
20 |
seated at rest |
33 |
28 |
21 |
doing very light work |
50 |
42 |
36 |
doing sedantary work |
80 |
70 |
90 |
For sensible heat:
i↓ j→ |
24 |
22 |
20 |
seated at rest |
67 |
72 |
79 |
doing very light work |
70 |
78 |
84 |
doing sedantary work |
80 |
90 |
98 |
Let the random variables i and j define the rows and columns in the table:
i = {0:3};
j = {0:3};
Define global variables as follows:
# Pick the activity and the temperature:
activity = pick(i, ["seated at rest","doing very light work","doing sedantary work"]);
temperature = pick(j, [24, 22, 20]);
# Pick data for the picked temperature:
lat = pick(j, [33, 50, 80], [28, 42, 70], [21, 36, 62] );
sen = pick(j, [67, 70, 80], [72, 78, 90], [79, 84, 98] );
# Pick latent heat and sensible heat for the picked activity:
latent = lat[i];
sensible= sen[i];
The question is attached below.