FindingFive Discussion Forum
pseudorandomization multiple attributes - Printable Version

+- FindingFive Discussion Forum (http://discuss.findingfive.com)
+-- Forum: Researchers (http://discuss.findingfive.com/forumdisplay.php?fid=3)
+--- Forum: Study Grammar & Management (http://discuss.findingfive.com/forumdisplay.php?fid=5)
+--- Thread: pseudorandomization multiple attributes (/showthread.php?tid=729)



pseudorandomization multiple attributes - blueorange - 04-17-2024

Is it possible to limit the maximum number of consecutive stimuli conditions?
For example, is there a way to limit the occurrence of both attributes "aaaa" and "bbbb" showing up?
I tried both of these codes but none of them worked Sad 
"stimulus_pattern": {"order": "pseudorandom",
                            "attribute": "a", "b",
                            "min_N": 1, "max_N": 3}


"stimulus_pattern": {"order": "pseudorandom",
                            "attribute": "a",
                            "attribute": "b",
                            "min_N": 1, "max_N": 3}


RE: pseudorandomization multiple attributes - Ting - 04-17-2024

There are a couple of things you can try.

First of all, make sure you've defined the attributes within the corresponding stimuli. That is, some of the stimuli should have something like:

Code:
{
  "type": "image",
  "content": "my_image1.png",
  "my_attribute": "a"
}
While another group of stimuli like:
Code:
{
  "type": "image",
  "content": "my_image1.png",
  "my_attribute": "b"
}

Then, in the stimulus pattern, you can do:
Code:
"stimulus_pattern": {"order": "pseudorandom",
                            "attribute": "my_attribute",
                            "min_N": 1, "max_N": 3}
Note you only need to specify the name of the attribute, not the values.

Go ahead and give it a try first though?


RE: pseudorandomization multiple attributes - blueorange - 04-17-2024

Works perfectly!
Thank you so much for your helpSmile


RE: pseudorandomization multiple attributes - Ting - 04-17-2024

Yay! Happy to hear that!