Randomised Sample

General help and assistance with jamovi. Bug reports can be made at our issues page: https://github.com/jamovi/jamovi/issues . (If you're unsure feel free to discuss it here)
Post Reply
Brenna
Posts: 5
Joined: Mon Sep 16, 2019 8:39 am

Randomised Sample

Post by Brenna »

This is my first ever time doing reaserch and using Jamovi. I need to create a randomised sample containing 95% of participants. Is this possible? I have read the user guide and googled, but no luck with finding how to do it. Sorry if it is a stupid question!
User avatar
jonathon
Posts: 2620
Joined: Fri Jan 27, 2017 10:04 am

Re: Randomised Sample

Post by jonathon »

hi,

you can use the simulation functions to exclude a random selection of variables.

for example, you could add a filter and specify the formula:

UNIF() < 0.95

UNIF() (by default) generates values from a uniform distribution between 0 and 1. hopefully you can see that combining it with the test, would be true 95% of the time, and on average 5% of the row/participants would be excluded.

a potential problem is that it won't necessarily be *exactly* 95% ... but only on average will it be 95%

so you could repeat the process until you get exactly 95% if that's important.

cheers
Screen Shot 2019-09-16 at 19.04.35.png
Screen Shot 2019-09-16 at 19.04.35.png (501.12 KiB) Viewed 4029 times
Brenna
Posts: 5
Joined: Mon Sep 16, 2019 8:39 am

Re: Randomised Sample

Post by Brenna »

Thank you so much!
Post Reply