Skip to content
Discussion options

You must be logged in to vote

Hey!
If you have the coeftable() or effects() of your models you can combine all the tidy DataFrames that you get to a big data frame with an additional :subject collumn. Then you can use the split-apply-combine functionality of DataFrames to calculate the grand average like this:

using DataFrames
using Statistics

mean_df = combine(groupby(tidy_df, [:time, :coefname]), :estimate => mean => :estimate)

There is also a bit of a longer tutorial in our UnfoldBIDS documentation

The tidy dataframe you get from this should be compatible with UnfoldMakie, but you might either have to specify your yhat column or rename it in your DataFrame. But @behinger or @vladdez could help with that.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@behinger
Comment options

@ReneSkukies
Comment options

@EmmanuelleKris
Comment options

@vladdez
Comment options

Answer selected by ReneSkukies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants