-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: add lmm to synthetic experiments #20
feat: add lmm to synthetic experiments #20
Conversation
# Process each part of the random effect (intercept and slopes) | ||
for part in random_effects_.split('+'): | ||
part = part.strip() | ||
std_dev = random_effects[group_var].get(part, 0.5) |
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.
There is a bug here.
In the formula, you correctly define the intercept as 1
, but then in your examples you define the intercept as Intercept
.
For example,
formula = 'rt ~ 1 + (1|subject) + x1'
random_effects = {'subject': {'Intercept': .1}}
This line of code is looking for the key 1
in the random_effects
dictionary, which does not exist. I am submitting a PR with a quick fix for this.
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.
I left a comment about a small bug in this, and have created a PR that fixes the bug.
…el-to-abstract-CW 19 feat add linear mixed model to abstract cw
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.
Nice!
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.
👍
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.
Seems great!
Description
add linear mixed model synthetic runner
Type of change