fixed analysis group. fixed error calc for sem and added sd for weighted mean