NLA provides a simple set of functions to aid in performing non-linear averaging.
f(X)¯≠f(X¯) \overline{f(X)} \neq f(\overline{X})
You can install the development version of nla from GitHub with:
nla
# install.packages("pak") pak::pak("fwimp/nla")