Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distributing trials across participants #23

Open
fredcallaway opened this issue Oct 20, 2016 · 1 comment
Open

Distributing trials across participants #23

fredcallaway opened this issue Oct 20, 2016 · 1 comment

Comments

@fredcallaway
Copy link

fredcallaway commented Oct 20, 2016

Basically, I want to do a latin square for the stimuli assignment, not the ordering.

For example, say I have the design:

  - name: participant
  - name: trial
    ivs:
      layout: [A, B]
      goes_in: [1, 0]

By default this gives me one participant with 4 trials:

Subj 1: A1 A0 B1 B0

But let's say I want to impose a restriction that each participant only see each iv value once. That is, I want (ignoring ordering for now):

Subj1: A1 B0
Subj2: A0 B1

I was planning to implement this myself, but I figured I'd check in with you first. I think we can modify design_matrix to allow a 3d array, where the extra (first) dimension will define the different possible design matrices that a subject could be assigned to. Assignment will be done by adding an extra iv to participant, similar to how counterbalancing is implemented.

  - name: participant
  - name: trial
    ivs:
      layout: [A, B]
      hit: [0, 1]
    desgin_matrix:
      -
        - [1, 1]
        - [0, 0]
      -
        - [0, 1]
        - [1, 0]

Step 2 will be to implement common choices of 3d design matrices, such as the latin squares in my example. I think an interface similar to the one to Ordering makes sense. I wrote up the basic logic here.

P.S. Awesome project by the way!

@hsharrison
Copy link
Owner

I think this can be accomplished with what I ended up calling a "heterogeneous experiment structure" which allows you to associate an IV with a design. That said, it is kind of clunky and nested design matrices might be a better interface. Feel free to have a go at it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants