turning beta weight into r