<div dir="ltr">see below<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 14, 2015 at 11:41 AM, Wackerow, Joachim <span dir="ltr">&lt;<a href="mailto:Joachim.Wackerow@gesis.org" target="_blank">Joachim.Wackerow@gesis.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">





<div lang="EN-US" vlink="purple" link="blue">
<div>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt">I understand this.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt">There seems to be room for different usage of arrays in this context. This can be confusing.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt">I see a couple of questions regarding array and limitArrayIndex:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt"><u></u> <u></u></span></p>
<p><u></u><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt"><span>1.<span style="font:7pt/normal &quot;Times New Roman&quot;;font-size-adjust:none;font-stretch:normal">     
</span></span></span><u></u><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt">The array is an output of QuestionGrid. It is not documented how the array is constructed. Row by column (like in math matrices) or column by row?</span></p></div></div></blockquote><div>A matrix would be in standard mathematical matrix order and can have more than 2 dimensions. so on a 3 dimensional grid of 2x3x2    1,1,1 1,1,2 1,2,1 1,2,2 1,3,1 1,3,2 2,1,1 etc.  </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div lang="EN-US" vlink="purple" link="blue"><div><p><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt"><u></u><u></u></span></p>
<p><u></u><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt"><span>2.<span style="font:7pt/normal &quot;Times New Roman&quot;;font-size-adjust:none;font-stretch:normal">     
</span></span></span><u></u><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt">Is the array an one-dimensional array or a two-dimensional array (in case of complex grids)? </span></p></div></div></blockquote><div>the array is a single dimension with a zero base so in above </div><div><br></div><div>0=1,1,1 </div><div>1=1,1,2 </div><div>2=1,2,1 </div><div>3=1,2,2</div><div>4=1,3,1 </div><div>5=1,3,2 </div><div>6=2,1,1 </div><div>etc</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div lang="EN-US" vlink="purple" link="blue"><div>
<p><u></u><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt"><span>3.<span style="font:7pt/normal &quot;Times New Roman&quot;;font-size-adjust:none;font-stretch:normal">     
</span></span></span><u></u><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt">limitArrayIndex is defined as NMTOKENS which means multiple blank-separated tokens can be used. What is the meaning of the first token, the second,
 the third?</span></p></div></div></blockquote><div>simple listed of items used from the array. 0, 1, 6, 7   if you were only pulling items from the array associated with the first value of the second dimension </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div lang="EN-US" vlink="purple" link="blue"><div><p><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt"><u></u><u></u></span></p>
<p><u></u><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt"><span>4.<span style="font:7pt/normal &quot;Times New Roman&quot;;font-size-adjust:none;font-stretch:normal">     
</span></span></span><u></u><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt">What is really the purpose of a range of the array?</span></p></div></div></blockquote><div>My error...you can&#39;t specify a range, you must indicate the specific items from the array that are used. Sorry for the confusion. Answered without double checking. </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div lang="EN-US" vlink="purple" link="blue"><div><p><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt">In my understanding each cell which represents a kind of question in a complex question grid can result in one variable. Therefore I don’t understand the purpose
 of multiple values in limitArrayIndex. I guess I miss some use case.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt">Achim<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;font-size:10pt">From:</span></b><span style="font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;font-size:10pt"> <a href="mailto:ddi-users-bounces@icpsr.umich.edu" target="_blank">ddi-users-bounces@icpsr.umich.edu</a> [mailto:<a href="mailto:ddi-users-bounces@icpsr.umich.edu" target="_blank">ddi-users-bounces@icpsr.umich.edu</a>]
<b>On Behalf Of </b>Wendy Thomas<br>
<b>Sent:</b> Montag, 14. Dezember 2015 15:38<br>
<b>To:</b> Data Documentation Initiative Users Group<br>
<b>Subject:</b> Re: [DDI-users] QuestionGrid and InParameter/@limitArrayIndex in DDI 3.2<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Any InParameter or OutParameter can indicate that it is an array.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">An InParameter can also state that if this is an array it may only accept a certain item or range in the array as its content. So if I get an array response from a QuestionGrid I could specify which items in the array I needed. For example
 if the grid asked for the number of employees and Wage/Salary, I could specify just the items in the array providing the number of employees for use in a generation instruction. In the same way a Variable that is repeated for each person in the family could
 assign the InParameter of the Variable to be only the 0 position of the array for person 1, 1 position for person 2, etc. (assuming a zero based array).<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Wendy<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Sun, Dec 13, 2015 at 11:27 AM, Wackerow, Joachim &lt;<a href="mailto:Joachim.Wackerow@gesis.org" target="_blank">Joachim.Wackerow@gesis.org</a>&gt; wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">This is a DDI 3.2 question.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I’m wondering how the attribute limitArrayIndex can be used with multiple tokens. What is the purpose of this? How is the order of the tokens related to a complex QuestionGrid?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Background
<u></u><u></u></p>
<p class="MsoNormal">---<u></u><u></u></p>
<p class="MsoNormal">In general:<u></u><u></u></p>
<p class="MsoNormal">QuestionGrid can have an OutParameter. This can be bound to an InParameter of a Command of a GenerationInstruction.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">The simple case:<u></u><u></u></p>
<p class="MsoNormal">One line in a QuestionGrid represents one question which results in one variable. A single value could be bound by InParameter/@limitArrayIndex [0] which would be the result of
 the first line; InParameter/@limitArrayIndex[1] the result of the second line etc.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Some complex cases:<u></u><u></u></p>
<p class="MsoNormal">One line in a QuestionGrid represents multiple questions and results in multiple variables.<u></u><u></u></p>
<p class="MsoNormal">One line in a QuestionGrid represents one question where multiple answers are allowed. The result can be a computed variable on the basis of the multiple answers or can be multiple
 variables.<u></u><u></u></p>
<p class="MsoNormal">---<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I thought it is possible to use single values of the array by defining multiple bindings for the above mentioned QuestionGrids. What is then the purpose of multiple tokens of limitArrayIndex?
 Is it related to the use with this kind of QuestionGrids?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">The documentation of limitArrayIndex says only:<u></u><u></u></p>
<p class="MsoNormal">“When the InParameter represents an array of items, this attribute specifies the index identification of the items within the zero-based array which should be treated as input parameters.
 If not specified, the full array is treated as the input parameter.”<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Any comment appreciated.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Achim<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12pt"><br>
_______________________________________________<br>
DDI-users mailing list<br>
<a href="mailto:DDI-users@icpsr.umich.edu" target="_blank">DDI-users@icpsr.umich.edu</a><br>
<a href="http://lists.icpsr.umich.edu/mailman/listinfo/ddi-users" target="_blank">http://lists.icpsr.umich.edu/mailman/listinfo/ddi-users</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Wendy L. Thomas                              Phone: +1 612.624.4389<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Data Access Core Director                 Fax:   +1 612.626.8375<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Minnesota Population Center             Email: <a href="mailto:wlt@umn.edu" target="_blank">
wlt@umn.edu</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">University of Minnesota<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">50 Willey Hall<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">225 19th Avenue South<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Minneapolis, MN 55455<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>

<br>_______________________________________________<br>
DDI-users mailing list<br>
<a href="mailto:DDI-users@icpsr.umich.edu">DDI-users@icpsr.umich.edu</a><br>
<a href="http://lists.icpsr.umich.edu/mailman/listinfo/ddi-users" target="_blank" rel="noreferrer">http://lists.icpsr.umich.edu/mailman/listinfo/ddi-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div>Wendy L. Thomas                              Phone: +1 612.624.4389</div><div>Data Access Core Director                 Fax:   +1 612.626.8375</div><div>Minnesota Population Center             Email: <a href="mailto:wlt@umn.edu" target="_blank">wlt@umn.edu</a></div><div>University of Minnesota</div><div>50 Willey Hall</div><div>225 19th Avenue South</div><div>Minneapolis, MN 55455</div></div>
</div></div>