Operations on formula terms and expressions
# S4 method for lgprhs,lgprhs
+(e1, e2)# S4 method for lgpterm,lgpterm
+(e1, e2)
# S4 method for lgprhs,lgpterm
+(e1, e2)
# S4 method for lgpterm,lgpterm
*(e1, e2)
The behaviour and return type depend on the types of e1 and e2.
You can
sum (+) two lgprhs's to yield an
lgprhs
sum (+) two lgpterm's to yield an
lgprhs
sum (+) an lgprhs and an lgpterm
to yield an lgprhs
multiply (*) two lgpterm's to yield
an lgpterm
The first sum, term or expression
The second sum, term or expression