-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
effects for LMMs #160
effects for LMMs #160
Conversation
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
function StatsModels.modelmatrix(model::UnfoldLinearMixedModel, bool) | ||
@assert bool == false "time continuous model matrix is not implemented for a `UnfoldLinearMixedModel`" | ||
return designmatrix(model).Xs[1] | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
end | |
end |
times(model::Union{<:UnfoldLinearMixedModel,<:UnfoldLinearModel}) = times(design(model)) | ||
times( | ||
d::Dict{<:Union{Any,<:AbstractString,Symbol},<:Tuple{<:AbstractTerm,<:AbstractVector}}, | ||
) = first(values(d))[2]#[k[2] for k in values(d)] # probably going for steprange would be better | ||
|
||
|
||
function gen_timeev(timesVec,nRows) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
function gen_timeev(timesVec,nRows) | |
function gen_timeev(timesVec, nRows) |
evts, | ||
data, | ||
) | ||
@test_broken eff = effects(Dict(:condition => ["car", "face"]), m) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
end | |
end |
I think it's about this broken test I wrote in the tests for the io functions. It's broken because effects was not defined for UnfoldLinearMixedModel. |
this finally adresses #113
What I havent implemented is for ContinuousTime LMMs, but that should be easy, I did run out of steam though, so at a later point
@jschepers what is the mention in #114 on a broken test?