microsimulation / ijm-xml

XML files for the International Journal of Microsimulation
MIT License
0 stars 0 forks source link

<code> in ijm-00156 #168

Open fred-atherden opened 4 years ago

fred-atherden commented 4 years ago

There are three algorithms in the appendices for ijm-00156, which are captured using the <code> element.

Please strip this element, and capture it with normal text/markup instead.

Example

<table-wrap id="tableAC-1" position="float">
<label>Algorithm C.1:</label>
<caption>
<title>Pseudocode for assigning across-month sexual activity type.</title>
</caption>
<table frame="hsides" rules="groups">
<tbody>
<tr>
<td>
                    <p>
<code xml:space="preserve">
1: Program define Assign Across Month Sexual Activity Type
2: Generate probability of falling into “inactive” (as opposed to “moderately active”
3: or “highly active”) sexual activity category
4: Generate probability of falling into “highly active” (as opposed to
5: “moderately active”) sexual activity category
6: Generate sexual activity type variable and initially assign all women to
7: “moderately active” category
8: Generate rTemp = runiform()
9: Replace sexual activity type = “inactive” if rTemp &lt; prob(inactive)
10: Drop rTemp
11: Generate rTemp = runiformQ
12: Replace sexual activity type = “highly active” if rTemp &lt; prob(highly active) &amp;
13: sexual activity type != “inactive”
14: Drop rTemp
15: End</code>
                    </p>
                  </td>
</tr>
</tbody>
</table>
</table-wrap>