ERROR: type NamedTuple has no field age
Stacktrace:
[1] getindex
@ ./namedtuple.jl:118 [inlined]
[2] modelcols
@ ~/.julia/packages/StatsModels/m1jYD/src/terms.jl:494 [inlined]
[3] #34
[...]
But e.g. effects(Dict(:sex=>["male","female"],:age=>[0,0]), mod_uncentered) works. If I add the interaction, weight ~ 1 + sex*age it works as well with my initial effects-dict.
Conceptually, I dont think I need to specify both sex&age in the dict.
results in
But e.g.
effects(Dict(:sex=>["male","female"],:age=>[0,0]), mod_uncentered)
works. If I add the interaction,weight ~ 1 + sex*age
it works as well with my initial effects-dict.Conceptually, I dont think I need to specify both
sex
&age
in the dict.I might have narrowed it down to a "<" needing to be a "<=", but then again, I again have no Idea what I'm doing ;-) https://github.com/beacon-biosignals/Effects.jl/blob/12b7d587009fd8fa9f975f2d1a59bc43d52f53d1/src/typical.jl#L68
(I can o.c. do the pull request, would be fun if that is the only change :-D)