Apparently all methods just do the same thing: average a vector (or columns of a matrix) of sufficient statistics. There may not be a need for a generic function with separate methods, then. Just have one function doing return(colMeans(sufficientT(y))) might do the trick.
Apparently all methods just do the same thing: average a vector (or columns of a matrix) of sufficient statistics. There may not be a need for a generic function with separate methods, then. Just have one function doing
return(colMeans(sufficientT(y)))
might do the trick.Credit to @rho62 for the idea, BTW. :)