tsostarics / contrastable

Contrast Coding Utilities
https://tsostarics.github.io/contrastable/
Other
0 stars 0 forks source link

Add option to print contrasts for `set_contrasts` #32

Closed tsostarics closed 2 months ago

tsostarics commented 2 months ago

Increasingly i find myself not needing the full summary from glimpse_contrasts since I mostly just use set_contrasts, but it's usually nice to show what the contrast matrices are. Currently to get information you'd need to double up on using set_contrasts and enlist_contrasts, printing the latter, or iterating through the set contrast factors and printing the results. Adding a print parameter to optionally display contrasts would be nice to avoid forcing the user to adopt the contrast list usage or manually iterating through contrasts.

tsostarics commented 2 months ago

obviously this was relatively easy to implement. Note that it only prints the contrasts that are explicitly set.