Welcome!

Sign in with your CogSci, Facebook, Google, or Twitter account.

Or register to create a new account.

We'll use your information only for signing in to this forum.

Supported by

Troubles with the shuffle function on OpenSesame

Hi,

I want to be able to shuffle the words within each of my columns in a loop so that when two columns from the same loop are called the words that appear are not from the same row. For example: I don't want the activity 'reading books' to always come up with the food 'pizza'.

I have tried to use the shuffle function to execute this. In the script of the loop after the set cycle functions, I have put "shuffle" and then the name of the column I want to shuffle.

But this hasn't seemed to work.

Does anyone have an idea of how to solve this?

Many Thanks,

Sara

Comments

  • sebastiaansebastiaan Posts: 2,950

    Hi Sara,

    It what sense doesn't it work? The pairing between food and activities is broken, right? But you're also undoing the constraints by reshuffling the columns—is that what you mean?

    Cheers,
    Sebastiaan

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

  • Hi Sebastiaan,

    So the problem is that I want to ask a question like;

    What is better [food] or [activities]?

    But I don't the pairing between food and activities to always be the same across the rows. For example I want to make it possible for the question 'What is better pizza or going to the pub" or "What is better steak or going for long walks" to be asked. But at the moment only what is better "pizza or reading books" will be asked as both those options occur in the same row.

    I realise the concepts are a bit odd but I promise there is a method to the madness!!

    Thankyou for letting me know the shuffling undoes the constraints! But at the moment the shuffle function is not reshuffling the columns at all. Could that be due to the presence of the constraints?

    Many Thanks,
    Sara

  • sebastiaansebastiaan Posts: 2,950
    edited January 23

    Hi Sara,

    I notice now that you've set repeat to 0.12. Given that you have 8 cycles, this means that you're selecting only (8 × 0.125 = ) 1 cycle. But with only 1 cycle, there is no point applying constraints, because no repeats can occur. And shuffling columns from a table with only 1 cycle also does nothing.

    So I suspect that you have something very different in mind. What does your design look like exactly, in terms of blocks, trials, repeats, etc?

    Cheers,
    Sebastiaan

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

  • Sara LakingSara Laking Posts: 8
    edited January 24

    Hi Sebastiaan,

    My experiment is investigating human scale judgement and if our underlying representation of rating scales reflects how they are analysed in the literature. I.e. Sequential, ordered and linear/ ratio or interval.

    So set repeat is only chooses one because it is part of a larger sequence, but all variables get used eventually as the sequence runs again.

    So my difficulty is getting the words within the loop to shuffle so that it is not just one row that is called each time.
    I have a new example; so this is the loop I want to shuffle:

    The result currently is this:

    But I want to have it so that it could be one toffee and going to the nightclub three times. Not that once always goes with one time, twice with two times etc.

    I hope this is slightly clearer. I was thinking perhaps manually writing the variables in an inline script might be the solution but I'm not sure how you do that.

    Many thanks,
    Sara

  • sebastiaansebastiaan Posts: 2,950

    Hi Sara,

    Hmm, the design is still not entirely clear to me. Can you try to explain it a bit more formally, in terms of independent variables, block structure, etc.?

    Or by example maybe: Can you give a series of choices (as in your last screenshot) that meet your criteria?

    Cheers,
    Sebastiaan

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

Sign In or Register to comment.