tests/soo.R

 library(digest)
 library(glmbb)

 foo <- terms(~ Contact * Influence * Housing + Satisfaction)
 bar <- attr(foo, "term.labels")
 baz <- glmbb:::standardize.term.labels(bar)

 foo <- terms(~ Satisfaction + Contact * Influence * Housing)
 bar <- attr(foo, "term.labels")
 qux <- glmbb:::standardize.term.labels(bar)

 ! identical(baz, qux)
 identical(sort(baz), sort(qux))

Try the glmbb package in your browser

Any scripts or data that you put into this service are public.

glmbb documentation built on Nov. 22, 2020, 1:07 a.m.