Closed tsostarics closed 5 months ago
Added a minimal = TRUE
parameter, which omits some of the additional columns that I'm assuming most people won't fully understand based on personal experience of having to explain what orthogonal and centered means to people. The function should be refactored a little bit to only compute the extra columns when minimal = FALSE
, but for now it should be fine.
Two things here. First, a column
is_scaled
should be added, which would help differentiate betweencontr.helmert
andreverse_helmert_code
. Second, since dropping trends is only really relevant to polynomial contrasts and dropping trends is somewhat rare anyways, I think the default behavior should be to not include the column if it isn't used. That is, ifdropped_trends
is all NA (which is likely the most common result), then it's a bit of nuisance to have it there.Proposal: add parameter
show_dropped_trends = FALSE
and only include the dropped trends column if it's TRUE. Alternatively, if dropped_trends is all NA and show_dropped_trends is FALSE, don't include the column, and if TRUE, include it; but, if there is a contrast with dropped trends, then ignoreshow_dropped_trends
and show the column anyways.