Unipark
Navigation
  • Forum
  • Registration
  • Login
Search

Forum › Forums › Unipark › Remember seen list-elements in loop

Tagged: loop; zufallsreihenfolge; zufallsauswahl

  • This topic has 1 reply, 1 voice, and was last updated 1 year, 8 months ago by Nora Cremille.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • 21. August 2023 at 10:22 #1769
    Nora Cremille
    Participant

    Hello,

    I created a loop so that the same 5 questions can be asked over and over again about my stimuli. I have packed my stimuli into a list that the loop iterates through. The list contains 40 pairs of elements (so a total of 80 list elements [[A1,A1′],[A2,A2′],…,[A40,A40′]]).

    I want only one list element to be displayed per pair at a time, randomly, but equally distributed overall (the participant should see 20 A and 20 A’). I also want the order of the items to be random.

    I’m sure this must be solvable with “triggers” or recording conditions, but can’t figure out how with the documentation.

    Ideas:

    (i) Is there a way to remember which list items have already been shown, to use this as a condition (on “include in list if…” or “include in random if…”)?

    (ii) Is there a way to edit the questionnaire code directly? Then you could shuffle an array with [[0,1],[1,0′],…,[1,A0]]) and use it as condition or similar.

    (iii) Is it solvable with quotas?

    Th solution should satisfy (a) an equal distribution (50% A/ 50% A’), (b) random selection of item from pair (A/ A’), (c) random ordering of items (1-40) and (d) no duplicates of items.

    I would be very grateful for ideas!

    21. August 2023 at 13:48 #1770
    Nora Cremille
    Participant

    Postscript: What does the option “is list element, if…”/ “is in random selection, if…” list_element_nr_6502548 != ‘x’ do?

    In the preview the condition does not seem to exclude the list element if it is equal to the current list element (n != x) or exclude the list element if it is equal to the pevious list element ((n-1) != x).

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Lost your password?

UNIPARK

QUICK LINKS

  • Registration
  • Login
  • Search
© Copyright 2025 UNIPARK