Skip to content

RERI incorrect due to variable names #22

@Daniel-Rud

Description

@Daniel-Rud

Hi,

Just wanted to share a problem when I use Y ~ E + G + E:G. When you use the line
e1 <- grep(exposure_names[1], names(coef(model)), value = TRUE, ignore.case = TRUE)
e2 <- grep(exposure_names[2], names(coef(model)), value = TRUE, ignore.case = TRUE)
e1_e2 <- intersect(e1,e2),

the E variable is picked up as the "(Intercept)" variable. Thought id share, looks like more prone with short single letter variable names.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions