<h2>What is wrong with my code?</h2>
<blockquote>
<p>I am working on a statistical problem.  <em>Here are pages and pages of the code I wrote</em> (followed by those pages).  What am I doing wrong?</p>
</blockquote>
<h3>Why this is problematic</h3>
<ol>
<li><p><strong>It requires everyone to read through your code</strong> just to understand the problem.  Did you comment it, by the way?  Did you even tell us what language it is in?</p>
</li>
<li><p><strong>Your code evidently doesn't do what you want.</strong>  Perforce it does not convey what you <em>do</em> want.  <em>You need to state your question in (English) words.</em></p>
</li>
<li><p><strong>The question reads like it's asking for coding help:</strong> it belongs on <a href="https://stackoverflow.com/help/minimal-reproducible-example">StackOverflow</a>, not here on CV.  But it likely won't be acceptable there, either: see their help and guidelines for asking good questions.  Look especially for information about constructing a <a href="https://stackoverflow.com/help/minimal-reproducible-example"><em>minimal reproducible example.</em></a>  This is why we cannot migrate the question.</p>
</li>
</ol>
<h3>How you can improve the question</h3>
<ul>
<li><p><strong>Describe your problem in words</strong> (perhaps supplemented with commonly understood mathematical symbols).</p>
</li>
<li><p><strong>Make it clear that you are not asking for programming help or debugging:</strong> describe the <em>statistical</em> issue where you need help or better understanding.</p>
</li>
<li><p><strong>Strip any code to its bare essentials.</strong>  Make it reproducible, small, and clear.  State what you expect (or hope) it to do.  Include (small) inputs we can use to reproduce the problem.  Display relevant output.</p>
</li>
</ul>
