ergmx.parse_formula#
- ergmx.parse_formula(formula)[source]#
Parse a formula string into terms.
The syntax is R’s: terms separated by
+, with arguments in parentheses. A left-hand side ("net ~ edges + mutual") is ignored;TRUE/FALSE,NA,c(2, 3)and2:3are accepted as in R, and so are interactions of dyad-independent terms (a:b, anda*bfora + b + a:b), R’s argument names with dots (sign.action=), and the operatorsoffset(term),F(~terms, ~filter),N(~terms, lm=~attributes),S(~terms, ~attributes)and tergm’sForm(),Persist(),Diss(),Cross()andChange(). Nothing is evaluated: arguments must be literals.