You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/condense.jl
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -175,6 +175,28 @@ function get_basis_colnames(rhs::AbstractTerm)
175
175
returncolnames(rhs.basisfunction)
176
176
end
177
177
178
+
"""
179
+
get_basisnames(model::UnfoldModel)
180
+
181
+
Return the basisnames for all predictor terms as a vector.
182
+
183
+
The returned vector contains the name of the event type/basis, repeated by their actual coefficient number (after StatsModels.apply_schema / timeexpansion).
184
+
If a model has more than one event type (e.g. stimulus and fixation), the vectors are concatenated.
185
+
"""
186
+
@traitfnfunctionget_basis_names(m::T) where {T <:UnfoldModel; !ContinuousTimeTrait{T}}
187
+
188
+
# Extract the event names from the design
189
+
design_keys =first.((Unfold.design(m)))
190
+
191
+
# Create a list of the basis names corresponding to each model term
0 commit comments