microsimulation / ijm-xml

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

child elements of <code> #169

Open fred-atherden opened 4 years ago

fred-atherden commented 4 years ago

Please strip any child elements of code. Two IJM articles have this:

ijm-00013

<code xml:space="preserve">*keep 1<sup>st</sup> observation
keep if _n==1
</code>

Please remove the sup tags.

ijm-00105

<code xml:space="preserve">
R&#x003E; fert2Rates &#x003C;- function(age, calTime, duration)&#x007B;
&#x002B; b &#x003C;- ifelse(calTime &#x003C;&#x003D; 2020, 6.0, 5.7)
&#x002B; c &#x003C;- ifelse(calTime &#x003C;&#x003D; 2020, 32, 33)
&#x002B; rate &#x003C;- (b / c) * (c / age) <sup>&#x039B;</sup> (3 / 2) *
&#x002B; exp(- b <sup>&#x039B;</sup> 2 * (c / age &#x002B; age / c &#x2212; 2))
&#x002B; rate[age &#x003C;&#x003D; 15 | age &#x003E;&#x003D; 45 | duration &#x003C; 0.75] &#x003C;- 0
&#x002B; return(rate)
&#x002B; &#x007D;
</code>

Please remove the sup tags