diff --git a/docs/literate/HowTo/sequence.jl b/docs/literate/HowTo/sequence.jl index 3f280f26..323f293c 100644 --- a/docs/literate/HowTo/sequence.jl +++ b/docs/literate/HowTo/sequence.jl @@ -11,15 +11,15 @@ using StableRNGs design = SingleSubjectDesign(conditions = Dict(:condition => ["one", "two"])) generate_events(design) # Next we use the `SequenceDesign` and nest our initial design in it. "`SR_`" is code for an "`S`" event and an "`R`" event - only single letter events are supported! The "`_`" is a signal for the Onset generator to generate a bigger pause - no overlap between adjacend "`SR`" pairs -design = SequenceDesign(design, "SR_", StableRNG(1)) -generate_events(design) +design = SequenceDesign(design, "SR_") +generate_events(StableRNG(1), design) # The main thing that happened is that the design was repeated for every event (each 'letter') of the sequence, and an `eventtype` column was added. # !!! hint # more advaned sequences are possible as well, like "SR{1,3}", or "A[BC]". Infinite sequences are **not** possible like "AB*". # Finally, let's repeat the current design 4 times design = RepeatDesign(design, 4) -generate_events(design) +generate_events(StableRNG(1), design) # This results in 16 trials that nicely follow our sequence