How to capture the fixed terms of a R formula? -
Suppose I have R formulas, which are with random posts:
f1 < -formula (y ~ x1 + x2 + (1 | x3) + x1 * x4) f2 and lt; - Formula (y ~ x1 + x2 + (1 | x3 + (0 + x5 | x3)) + x1 * x4] How do I get certain conditions for these formulas? : Factrum [1] "x1" "x2" "x4" "x1: x4"
library (lme4) f1.fixed & lt; - terms (lme4 ::: nobars (f1)) etter (f 1. fixed, "term.labels") # [1] "x1" "x2" "x4" "x1: x4"
Comments
Post a Comment