Skip to content

Conversation

@mattcieslak
Copy link
Contributor

ModelArray.lm and ModelArray.gam are extremely thorough, but single-purpose functions. There are a lot of cases where users want to do something fancy in addition to a model fit (#46, #81, #87, etc). It would be difficult to add such heavily sanity checked functions to ModelArray for each, so instead I think we should add a function that lets a user wrap any function and applies it to each element with the same parallelization as the existing lm and gam wrappers.

This PR adds

  • ModelArray.wrap
  • analyseOneElement.wrap
  • Options for error handling: 'skip' and 'debug'

cursor[bot]

This comment was marked as outdated.

@mattcieslak mattcieslak merged commit e27a21b into main Sep 17, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant