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

between-subject design? #231

Open
Aivi47 opened this issue Mar 8, 2024 · 2 comments
Open

between-subject design? #231

Aivi47 opened this issue Mar 8, 2024 · 2 comments

Comments

@Aivi47
Copy link

Aivi47 commented Mar 8, 2024

What would you like or expect to see?

I would like to create an experiment with 3 different conditions between subjects. Ideally there would be a random allocation of eac participant to one of the three groups. Is this possible with lab.js?

Finally, please tell us which browser you're using (and the version thereof)

I'm using Chrome Version 122.0.6261.111.

@mcfarla9
Copy link

mcfarla9 commented Mar 8, 2024

If you simply want to assign each session to a random condition, just use Math.random() in lab.js script.

We wanted to do something similar, assigning each subject to one of three conditions, except that we wanted to balance the number of subjects in each group, and Math.random() did not achieve that. In our case we used server-side script (PHP) to keep a count of the subjects and then assign conditions in round-robin fashion. We run our own lab.js study server, otherwise I do not know if we could run our own server-side script.

@Aivi47
Copy link
Author

Aivi47 commented Mar 11, 2024

Thank you very much for your answer and explanations!

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