Analyze data function added to predict scales