[DDI-users] QuestionGrid and InParameter/@limitArrayIndex in DDI 3.2

Wendy Thomas wlt at umn.edu
Mon Dec 14 13:03:03 EST 2015


see below

On Mon, Dec 14, 2015 at 11:41 AM, Wackerow, Joachim <
Joachim.Wackerow at gesis.org> wrote:

> I understand this.
>
>
>
> There seems to be room for different usage of arrays in this context. This
> can be confusing.
>
> I see a couple of questions regarding array and limitArrayIndex:
>
>
>
> 1.      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?
>
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.

> 2.      Is the array an one-dimensional array or a two-dimensional array
> (in case of complex grids)?
>
the array is a single dimension with a zero base so in above

0=1,1,1
1=1,1,2
2=1,2,1
3=1,2,2
4=1,3,1
5=1,3,2
6=2,1,1
etc

> 3.      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?
>
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

> 4.      What is really the purpose of a range of the array?
>
My error...you can't specify a range, you must indicate the specific items
from the array that are used. Sorry for the confusion. Answered
without double checking.


>
>
> 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.
>
>
>
> Achim
>
>
>
>
>
> *From:* ddi-users-bounces at icpsr.umich.edu [mailto:
> ddi-users-bounces at icpsr.umich.edu] *On Behalf Of *Wendy Thomas
> *Sent:* Montag, 14. Dezember 2015 15:38
> *To:* Data Documentation Initiative Users Group
> *Subject:* Re: [DDI-users] QuestionGrid and InParameter/@limitArrayIndex
> in DDI 3.2
>
>
>
> Any InParameter or OutParameter can indicate that it is an array.
>
>
>
> 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).
>
>
>
> Wendy
>
>
>
> On Sun, Dec 13, 2015 at 11:27 AM, Wackerow, Joachim <
> Joachim.Wackerow at gesis.org> wrote:
>
> This is a DDI 3.2 question.
>
>
>
> 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?
>
>
>
> Background
>
> ---
>
> In general:
>
> QuestionGrid can have an OutParameter. This can be bound to an InParameter
> of a Command of a GenerationInstruction.
>
>
>
> The simple case:
>
> 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.
>
>
>
> Some complex cases:
>
> One line in a QuestionGrid represents multiple questions and results in
> multiple variables.
>
> 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.
>
> ---
>
>
>
> 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?
>
>
>
> The documentation of limitArrayIndex says only:
>
> “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.”
>
>
>
> Any comment appreciated.
>
>
>
> Achim
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> DDI-users mailing list
> DDI-users at icpsr.umich.edu
> http://lists.icpsr.umich.edu/mailman/listinfo/ddi-users
>
>
>
>
> --
>
> Wendy L. Thomas                              Phone: +1 612.624.4389
>
> Data Access Core Director                 Fax:   +1 612.626.8375
>
> Minnesota Population Center             Email: wlt at umn.edu
>
> University of Minnesota
>
> 50 Willey Hall
>
> 225 19th Avenue South
>
> Minneapolis, MN 55455
>
> _______________________________________________
> DDI-users mailing list
> DDI-users at icpsr.umich.edu
> http://lists.icpsr.umich.edu/mailman/listinfo/ddi-users
>
>


-- 
Wendy L. Thomas                              Phone: +1 612.624.4389
Data Access Core Director                 Fax:   +1 612.626.8375
Minnesota Population Center             Email: wlt at umn.edu
University of Minnesota
50 Willey Hall
225 19th Avenue South
Minneapolis, MN 55455
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.icpsr.umich.edu/pipermail/ddi-users/attachments/20151214/c88ba417/attachment.html 


More information about the DDI-users mailing list