Dollar higher on upbeat U.S. data but set for weekly losses