Add full root mean square implementation to replace chi-square