Skip to content

Commit

Permalink
remove semicolons from readme example
Browse files Browse the repository at this point in the history
fix #134
  • Loading branch information
behinger authored and jschepers committed Jan 13, 2025
1 parent 681b5e6 commit 64fd42a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,22 @@ using Random
# Start by defining the design / events data frame
design =
SingleSubjectDesign(; conditions = Dict(:condA => ["levelA", "levelB"])) |>
d -> RepeatDesign(d, 10);
d -> RepeatDesign(d, 10)

# Next define a ground truth signal + relation to events/design with Wilkinson formulas
signal = LinearModelComponent(;
basis = [0, 0, 0, 0.5, 1, 1, 0.5, 0, 0],
formula = @formula(0 ~ 1 + condA),
β = [1, 0.5],
);
)
# finally, define some inter-onset distribution and noise, and simulate data!
data, events = simulate(
Random.MersenneTwister(1),
design,
signal,
UniformOnset(; offset = 5, width = 4),
PinkNoise(),
);
)
```
All simulation ingredients (design, components, onsets, noise) can be easily modified and you can simply plugin your own!

Expand Down

0 comments on commit 64fd42a

Please sign in to comment.