pass by const reference with genlogitP