How to randomise a data column using Compute?

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
Fhas
Posts: 27
Joined: Wed Sep 12, 2018 2:55 pm

How to randomise a data column using Compute?

Post by Fhas »

Hi all,

I am trying to figure out how to randomise a data column for use in further analyses.
This is a common 'surrogate' test for time series analysis.

I can draw random uniform numbers based on 1:NROW and round them, but this obviously doesn't guarantee a clean result. Moreover, it is unclear to me how to use a possible index to reorder the values using compute.

Hop anyone can help, thanks!
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: How to randomise a data column using Compute?

Post by jonathon »

hi fhas,

you're trying to sample *without* replacement?

that's something i've been meaning to add - hopefully will get to it soon.

cheers

jonathon
Fhas
Posts: 27
Joined: Wed Sep 12, 2018 2:55 pm

Re: How to randomise a data column using Compute?

Post by Fhas »

Indeed, sampling without replacement.
Thanks!
Post Reply