diff --git a/dev/.documenter-siteinfo.json b/dev/.documenter-siteinfo.json
index 5972daf..e3c8e92 100644
--- a/dev/.documenter-siteinfo.json
+++ b/dev/.documenter-siteinfo.json
@@ -1 +1 @@
-{"documenter":{"julia_version":"1.10.1","generation_timestamp":"2024-02-16T16:55:25","documenter_version":"1.2.1"}}
\ No newline at end of file
+{"documenter":{"julia_version":"1.10.1","generation_timestamp":"2024-02-19T15:07:34","documenter_version":"1.2.1"}}
\ No newline at end of file
diff --git a/dev/api/index.html b/dev/api/index.html
index 4927822..1ffacca 100644
--- a/dev/api/index.html
+++ b/dev/api/index.html
@@ -5,26 +5,26 @@
β = [1.,2.],
contrasts=Dict(:cond=>EffectsCoding())
)
-sourceUnfoldSim.MixedModelComponent — Type
A component that adds a hierarchical relation between parameters according to a LMM defined via MixedModels.jl
basis: an object, if accessed, provides a 'basis-function', e.g. hanning(40), this defines the response at a single event. It will be weighted by the model-prediction
formula: Formula-Object in the style of MixedModels.jl e.g. @formula 0~1+cond + (1|subject) - left-handside is ignored
β Vector of betas, must fit the formula
σs Dict of random effect variances, e.g. Dict(:subject=>[0.5,0.4]) or to specify correlationmatrix Dict(:subject=>[0.5,0.4,I(2,2)],...). Technically, this will be passed to MixedModels.jl create_re function, which creates the θ matrices.
contrasts: Dict in the style of MixedModels.jl. Default is empty.
All arguments can be named, in that case contrasts is optional
A component that adds a hierarchical relation between parameters according to a LMM defined via MixedModels.jl
basis: an object, if accessed, provides a 'basis-function', e.g. hanning(40), this defines the response at a single event. It will be weighted by the model-prediction
formula: Formula-Object in the style of MixedModels.jl e.g. @formula 0~1+cond + (1|subject) - left-handside is ignored
β Vector of betas, must fit the formula
σs Dict of random effect variances, e.g. Dict(:subject=>[0.5,0.4]) or to specify correlationmatrix Dict(:subject=>[0.5,0.4,I(2,2)],...). Technically, this will be passed to MixedModels.jl create_re function, which creates the θ matrices.
contrasts: Dict in the style of MixedModels.jl. Default is empty.
All arguments can be named, in that case contrasts is optional
Takes an array of 'm' target coordinate vector (size 3) (or vector of vectors) and a matrix (n-by-3) of all available positions, and returns an array of size 'm' containing the indices of the respective items in 'pos' that are nearest to each of the target coordinates.
Returns src-ix of the Headmodel Hartmut which is closest to the average of the label.
Important
We use the average in eucledean space, but the cortex is a curved surface. In most cases they will not overlap. Ideally we would calculate the average on the surface, but this is a bit more complex to do (you'd need to calculate the vertices etc.)
Generates full factorial Dataframe according to MixedModelsSim.jl 's simdatcrossed function Note: nitems = you can think of it as trials or better, as stimuli
Note: No condition can be named dv which is used internally in MixedModelsSim / MixedModels as a dummy left-side
Afterwards applies design.eventorderfunction. Could be used to duplicate trials, sort, subselect etc.
Finally it sorts by :subject
julia> d = MultiSubjectDesign(;nsubjects = 10,nitems=20,bothwithin= Dict(:A=>nlevels(5),:B=>nlevels(2))) julia> generateevents(d)
Extract magnitude of 3-orientation-leadfield, type (default: "perpendicular") => uses the provided source-point orientations - otherwise falls back to norm
signalsize = 100, length of simulated hanning window
basis= hanning(signalsize), the actual "function",signalsize` is only used here
β = [1,-0.5,.5,+1], the parameters
σs = Dict(:subject=>[1,0.5,0.5,0.5],:item=>[1]), - only in n_subjects>=2 case, specifies the random effects
contrasts = Dict(:A=>EffectsCoding(),:B=>EffectsCoding()) - effect coding by default
formula = n_subjects==1 ? @formula(0~1+AB) : @formula(dv~1+AB+(A*B|subject)+(1|item)),
noise
noiselevel = 0.2,
noise = PinkNoise(;noiselevel=noiselevel),
onset
overlap = (0.5,0.2),
onset=UniformOnset(;offset=signalsizeoverlap[1],width=signalsizeoverlap[2]), #put offset to 1 for no overlap. put width to 0 for no jitter
Careful if you modify nitems with nsubjects = 1, n_items has to be a multiple of 4 (or your equivalent conditions factorial, e.g. all combinations length)