Page 1 of 1

Selecting a sample after filtering

Posted: Mon Jan 09, 2023 10:16 pm
by PatWilliams
I applied a filter to a data set (n = 790) to remove scores below a certain level from my analysis. I then attempted to select a sample of 16 from the remaining 130 scores by computing a new variable and using the function = SAMPLE(Var,16). But instead of a sample of 16, the result was a sample of only 4. Am I doing something wrong? Is there a way to do this and get a sample of the specified number?

Re: Selecting a sample after filtering

Posted: Wed Jan 11, 2023 11:55 pm
by jonathon
hi,

this looks to be a bug in the SAMPLE() function. i've created an issue here that you can follow the progress of us fixing it.

https://github.com/jamovi/jamovi/issues/1297

with thanks