SAMPLE filter not working?

Discuss the jamovi platform, possible improvements, etc.
Post Reply
simonmoon
Posts: 18
Joined: Thu Oct 27, 2022 3:45 pm

SAMPLE filter not working?

Post by simonmoon »

Hello,

I tried to create a random sample from the data opened. The SAMPLE function in the filter doesn't seem to be working. Here is the syntax I used.

SAMPLE(`Acc`, 50, 'test')

There are over 400 case in the data file and this filter excluded all the cases. I varied the parameters but nothing worked. Any clue?
User avatar
jonathon
Posts: 2852
Joined: Fri Jan 27, 2017 10:04 am

Re: SAMPLE filter not working?

Post by jonathon »

with filters, a value of 1 is a "tick", and anything else is a "cross".

so use this instead:

SAMPLE(1, 50)

jonathon
Post Reply