22 May 2013 22:55
on sample restriction
Dear all,
I use a sample restriction command into a "foreach" loop based on an index variable.
The problem arises when for a specific index variable the sample restriction leaves no observation and then the loop stops running notifying that no observation would be left.
I would expect/prefer that the loop keep running through the next value of the index variable instead of shutting down.
Is there any way to have the loop work beyond this "impediment"?
Best regards,
artur
I use a sample restriction command into a "foreach" loop based on an index variable.
The problem arises when for a specific index variable the sample restriction leaves no observation and then the loop stops running notifying that no observation would be left.
I would expect/prefer that the loop keep running through the next value of the index variable instead of shutting down.
Is there any way to have the loop work beyond this "impediment"?
Best regards,
artur
<div>
Dear all,<br>
I use a sample restriction command into a "foreach" loop based
on an index variable.<br>
The problem arises when for a specific index variable the sample
restriction leaves no observation and then the loop stops
running notifying that no observation would be left. <br>
I would expect/prefer that the loop keep running through the
next value of the index variable instead of shutting down.<br>
Is there any way to have the loop work beyond this "impediment"?<br>
Best regards,<br>
artur<br>
</div>
), but
why then such drastic differences?
RSS Feed