private boolean isIndependentMultinomialLogisticRegression(Node x, Node y, List<Node> z) {
    double p = dependencePvalsLogit(x, y, z)[0];
    boolean indep = p > alpha;
    // 0 corresponds to y
    this.lastP = p;

    if (indep) {
      TetradLogger.getInstance()
          .log("independencies", SearchLogUtils.independenceFactMsg(x, y, z, p));
    } else {
      TetradLogger.getInstance().log("dependencies", SearchLogUtils.dependenceFactMsg(x, y, z, p));
    }

    return indep;
  }
  private boolean isIndependentRegression(Node x, Node y, List<Node> z) {
    double p = dependencePvalsLinear(x, y, z)[0];
    // result.getP()[1];
    this.lastP = p;

    boolean indep = p > alpha;

    if (verbose) {
      if (indep) {
        TetradLogger.getInstance()
            .log("independencies", SearchLogUtils.independenceFactMsg(x, y, z, p));
      } else {
        TetradLogger.getInstance()
            .log("dependencies", SearchLogUtils.dependenceFactMsg(x, y, z, p));
      }
    }

    return indep;
  }