<p>IMHO, asking for full fledged R code for your context is inappropriate. The ideal statistical computing question would be something along the following lines:</p>

<ul>
<li>Explain model context / your goals etc</li>
<li>Give some minimal example of R code that you are having trouble with</li>
<li>Ask your question about the code (e.g., bugs, slow code etc that you have)</li>
</ul>
