microsimulation / ijm-xml

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

Tables in ijm-00066 #161

Open fred-atherden opened 4 years ago

fred-atherden commented 4 years ago

Tables 2 and 3 in ijm-00066 are captured as table-wrap elements containing more than one table element. Instead, each table-wrap should only contain 1 table and any headers in the body should be tagged up in tbody using the th element.

Example

<table-wrap id="table2" position="float">
    <label>Table 2.</label>
    <caption><title>Regression results of Model 1 (entering first cohabitation) and 2 (entering higher order cohabitation).</title></caption>
    <table frame="hsides" rules="groups">
        <thead>
            <tr>
                <th colspan="3"><italic>Model 1</italic></th>
            </tr>
            <tr>
                <th>Variable</th>
                <th>Coefficient</th>
                <th>p-value</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>Age of male</td>
                <td>0.0521</td>
                <td>0.0046</td>
            </tr>
            <tr>
                <td colspan="3">Age difference (age of male &#x2013; age of female)</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>greater than 9</italic></td>
                <td>&#x2212;2.9876</td>
                <td>&#x003C;0.001</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>from 7 to 9</italic></td>
                <td>&#x2212;1.4633</td>
                <td>&#x003C;0.001</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>from 4 to 6</italic></td>
                <td>&#x2212;0.4862</td>
                <td>0.0108</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>from &#x2212;3 to 3</italic></td>
                <td>0</td>
                <td></td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>from &#x2212;6 to &#x2212;4</italic></td>
                <td>&#x2212;1.4360</td>
                <td>&#x003C;0.001</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>from &#x2212;10 to &#x2212;7</italic></td>
                <td>&#x2212;2.8137</td>
                <td>&#x003C;0.001</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>smaller than &#x2212;10</italic></td>
                <td>&#x2212;3.0582</td>
                <td>&#x003C;0.001</td>
            </tr>
            <tr>
                <td>Difference in educational level</td>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>male is higher or equally educated</italic></td>
                <td>0.6424</td>
                <td>&#x003C;0.001</td>
            </tr>
            <tr>
                <td>Marriage history of female</td>
                <td/>
                <td/>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>female was married before</italic></td>
                <td>-0.2811</td>
                <td>0.1833</td>
            </tr>
            <tr>
                <td colspan="3">Number of potential pairs: <bold>1078</bold></td>
            </tr>
        </tbody>
    </table>
    <table frame="hsides" rules="groups">
        <thead>
            <tr>
                <th colspan="3"><italic>Model 2</italic></th>
            </tr>
            <tr>
                <th>Variable</th>
                <th>Coefficient</th>
                <th>p-value</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>Age of male</td>
                <td>0.0550</td>
                <td>0.0013</td>
            </tr>
            <tr>
                <td colspan="3">Age difference (age of male &#x2013; age of female)</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>greater than 10</italic></td>
                <td>&#x2212;3.5428</td>
                <td>&#x003C;0.001</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>from 4 to 10</italic></td>
                <td>&#x2212;3.5428</td>
                <td>&#x003C;0.001</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>from &#x2212;3 to 3</italic></td>
                <td>0</td>
                <td></td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>from &#x2212;10 to &#x2212;4</italic></td>
                <td>&#x2212;1.0105</td>
                <td>0.0021</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>smaller than &#x2212;10</italic></td>
                <td>&#x2212;3.1277</td>
                <td>0.0196</td>
            </tr>
            <tr>
                <td>Difference in educational level</td>
                <td/>
                <td/>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>male is higher or equally educated</italic></td>
                <td>0.7825</td>
                <td>0.0148</td>
            </tr>
            <tr>
                <td>Children with former partner</td>
                <td/>
                <td/>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>female has children</italic></td>
                <td>1.6754</td>
                <td>&#x003C;0.001</td>
            </tr>
            <tr>
                <td colspan="3">Number of potential pairs: <bold>394</bold></td>
            </tr>
        </tbody>
    </table>
</table-wrap>

Becomes instead

<table-wrap id="table2" position="float">
    <label>Table 2.</label>
    <caption><title>Regression results of Model 1 (entering first cohabitation) and 2 (entering higher order cohabitation).</title></caption>
    <table frame="hsides" rules="groups">
        <thead>
            <tr>
                <th colspan="3"><italic>Model 1</italic></th>
            </tr>
            <tr>
                <th>Variable</th>
                <th>Coefficient</th>
                <th>p-value</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>Age of male</td>
                <td>0.0521</td>
                <td>0.0046</td>
            </tr>
            <tr>
                <td colspan="3">Age difference (age of male &#x2013; age of female)</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>greater than 9</italic></td>
                <td>&#x2212;2.9876</td>
                <td>&#x003C;0.001</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>from 7 to 9</italic></td>
                <td>&#x2212;1.4633</td>
                <td>&#x003C;0.001</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>from 4 to 6</italic></td>
                <td>&#x2212;0.4862</td>
                <td>0.0108</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>from &#x2212;3 to 3</italic></td>
                <td>0</td>
                <td></td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>from &#x2212;6 to &#x2212;4</italic></td>
                <td>&#x2212;1.4360</td>
                <td>&#x003C;0.001</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>from &#x2212;10 to &#x2212;7</italic></td>
                <td>&#x2212;2.8137</td>
                <td>&#x003C;0.001</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>smaller than &#x2212;10</italic></td>
                <td>&#x2212;3.0582</td>
                <td>&#x003C;0.001</td>
            </tr>
            <tr>
                <td>Difference in educational level</td>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>male is higher or equally educated</italic></td>
                <td>0.6424</td>
                <td>&#x003C;0.001</td>
            </tr>
            <tr>
                <td>Marriage history of female</td>
                <td/>
                <td/>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>female was married before</italic></td>
                <td>-0.2811</td>
                <td>0.1833</td>
            </tr>
            <tr>
                <td colspan="3">Number of potential pairs: <bold>1078</bold></td>
            </tr>
            <tr>
                <td/>
            </tr>
            <tr>
                <th colspan="3"><italic>Model 2</italic></th>
            </tr>
            <tr>
                <th>Variable</th>
                <th>Coefficient</th>
                <th>p-value</th>
            </tr>
            <tr>
                <td>Age of male</td>
                <td>0.0550</td>
                <td>0.0013</td>
            </tr>
            <tr>
                <td colspan="3">Age difference (age of male &#x2013; age of female)</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>greater than 10</italic></td>
                <td>&#x2212;3.5428</td>
                <td>&#x003C;0.001</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>from 4 to 10</italic></td>
                <td>&#x2212;3.5428</td>
                <td>&#x003C;0.001</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>from &#x2212;3 to 3</italic></td>
                <td>0</td>
                <td></td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>from &#x2212;10 to &#x2212;4</italic></td>
                <td>&#x2212;1.0105</td>
                <td>0.0021</td>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>smaller than &#x2212;10</italic></td>
                <td>&#x2212;3.1277</td>
                <td>0.0196</td>
            </tr>
            <tr>
                <td>Difference in educational level</td>
                <td/>
                <td/>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>male is higher or equally educated</italic></td>
                <td>0.7825</td>
                <td>0.0148</td>
            </tr>
            <tr>
                <td>Children with former partner</td>
                <td/>
                <td/>
            </tr>
            <tr>
                <td>&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;&#x2009;<italic>female has children</italic></td>
                <td>1.6754</td>
                <td>&#x003C;0.001</td>
            </tr>
            <tr>
                <td colspan="3">Number of potential pairs: <bold>394</bold></td>
            </tr>
        </tbody>
    </table>
</table-wrap>