PennLINC / ModelArray

ModelArray: an R package for statistical analysis of fixel-wise data and beyond
https://pennlinc.github.io/ModelArray
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

[ENH] in ModelArray.gam(): check if interaction term with more than 2 levels will display well #63

Closed zhao-cy closed 2 years ago

zhao-cy commented 2 years ago

Bart, 2022.5.16, slack fixel_analysis: factor smooth interaction: if the factor has more than two levels, there will be more than one interaction term. Couldn’t tell if that will be captured in your naming convention s_x_BYorderedFactor if there were three levels, and level A was the reference level, then gam returns s(x):levelB and s(x):levelC. Each term reflects the difference in the smooth function between that level of the factor and the reference level of the factor. So s(x):levelB is the difference between the smooths for level B and A

zhao-cy commented 2 years ago

resolved by branch enh/test_expected_values