Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A situation where the effect of an explanatory variable may depend on the value of another explanatory variable.
5
votes
how do I plot interactions with continuous and categorical predictors in mixed models?
You can specify that you'd like a line for each interaction of f1 and f3 using the group aesthetic and interaction function in R:
ggplot(data, aes(x=f2, y=dep, group = interaction(f1, f3))) +
geom_smooth … Here's an example that uses color for the day and line type for gender:
ggplot(aes(x=f2, y=dep, group = interaction(f1, f3))) +
geom_smooth(method="lm", alpha = 0.1, aes(lty=f1, color=f3))
Note …