Input and output can be changed according to the needs.
Currently it prints messages to the console. This is not necessary, but is nice.
If the by argument is specified (#2), then it should be applied to all groups (preferably all in C++). Messages would still be optional.
Since the function uses the built-in optimization routines applied to the binomial distribution, this may not be easy. Any speed improvements are appreciated.
Input and output can be changed according to the needs.
Currently it prints messages to the console. This is not necessary, but is nice.
If the
by
argument is specified (#2), then it should be applied to all groups (preferably all in C++). Messages would still be optional.Since the function uses the built-in optimization routines applied to the binomial distribution, this may not be easy. Any speed improvements are appreciated.