code: def check_pca_princomp(pcares, princomp):
      factors, evals, evecs = pcares[1:]
      # res_princomp.coef, res_princomp.factors, res_princomp.values
      msign = (evecs / princomp.coef)[0]
      assert_array_almost_equal(msign * evecs, princomp.coef, 13)
      assert_array_almost_equal(msign * factors, princomp.factors, 13)
      assert_array_almost_equal(evals, princomp.values.ravel(), 13)
  
file_path: statsmodels/statsmodels/sandbox/tests/test_pca.py
imports: import numpy
  from numpy.testing import assert_array_almost_equal
  from statsmodels.sandbox.tools import pca, pcasvd
  from statsmodels.multivariate.tests.results.datamlw import princomp1, princomp2, princomp3, data
label_desc: Use image node_id 1 for calling a global function with example usage: check_pca_princomp(pcares, princomp) without return types