add R stats commands