class_docstr: Main class for calculating GageRnR.
docstr: Calculate Squares.
docstr_tok: ["Calculate","Squares","."]
code: def calculate_squares(self):
      """Calculate Squares."""
      mean = self.calculate_mean()
      tS = (self.data - mean[Component.TOTAL]) ** 2
      oS = (mean[Component.OPERATOR] - mean[Component.TOTAL]) ** 2
      pS = (mean[Component.PART] - mean[Component.TOTAL]) ** 2
  
      dataE = self.data.reshape(
          self.operators * self.parts, self.measurements
      )
      meanMeas = np.repeat(
          mean[Component.MEASUREMENT], self.measurements
      )
      meanMeas = meanMeas.reshape(
          self.operators * self.parts, self.measurements
      )
  
      mS = (dataE - meanMeas) ** 2
      return {
          Component.TOTAL: tS,
          Component.OPERATOR: oS,
          Component.PART: pS,
          Component.MEASUREMENT: mS,
      }
  
imports: from enum import Enum
  import numpy
  import math
  import scipy.stats
label_desc: Use image node_id 4 for calling the GageRnR obj's underlying member method code with example usage: obj.calculate_squares() and returns: dict