Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
behinger authored Oct 30, 2023
1 parent ea9229a commit 799c579
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,14 @@ Pkg.add("UnfoldMakie")

```julia
using UnfoldMakie
using CairoMakie
using CairoMakie # backend
using Unfold,UnfoldSim # Fit / Simulation

data, evts = UnfoldSim.predef_eeg(; noiselevel = 12, return_epoched = true)
data = reshape(data,1,size(data)...) # fake a single channel

times = range(0, step = 1 / 100, length = size(data, 2))
m= fit(UnfoldModel,@formula(0~1+condition),evts,data,times)
m = fit(UnfoldModel,@formula(0~1+condition),evts,data,times)

plot_erp(coeftable(m))
```
Expand Down

0 comments on commit 799c579

Please sign in to comment.