Currently pareto_smooth returns by default a list object of smoothed input and diagnostics. If return_k = FALSE, it only returns a numeric of smoothed values.
The function is usually used to smooth some draws and then use them for something else (perhaps in a series of pipes), and it seems unnecessary to always add return_k = FALSE to every call.
The default should probably be changed to return just the smoothed x (i.e. return_k = FALSE), and provide a message if the k-hat is high.
Currently
pareto_smooth
returns by default a list object of smoothed input and diagnostics. Ifreturn_k = FALSE
, it only returns a numeric of smoothed values.The function is usually used to smooth some draws and then use them for something else (perhaps in a series of pipes), and it seems unnecessary to always add
return_k = FALSE
to every call.The default should probably be changed to return just the smoothed x (i.e.
return_k = FALSE
), and provide a message if the k-hat is high.I can make a PR for this change.