Class WildBootstrapMarkovCheck.Result

java.lang.Object
edu.cmu.tetrad.search.WildBootstrapMarkovCheck.Result
Enclosing class:
WildBootstrapMarkovCheck

public static final class WildBootstrapMarkovCheck.Result extends Object
Outcome of a check: omnibus p-values plus per-constraint diagnostics.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final String[]
    Length-K constraint labels, of the form "X _||_ Y" or "X _||_ Y | Z1,Z2".
    final double
    The observed value of max_j |T_j|.
    final int
    Sample size.
    final int
    Number of bootstrap replicates used, B.
    final int
    Number of constraints tested, K.
    final double
    Wild-bootstrap p-value for the omnibus statistic max_j |T_j|.
    final double
    Wild-bootstrap p-value for the omnibus statistic sum_j T_j^2.
    final double
    The observed value of sum_j T_j^2.
    final double[]
    Length-K observed standardized statistics T_j, aligned with labels.
  • Method Summary

    Modifier and Type
    Method
    Description
    Constraints with the largest |T_j|, most-violated first.
     

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • pMax

      public final double pMax
      Wild-bootstrap p-value for the omnibus statistic max_j |T_j|.
    • pSumSquares

      public final double pSumSquares
      Wild-bootstrap p-value for the omnibus statistic sum_j T_j^2.
    • mObs

      public final double mObs
      The observed value of max_j |T_j|.
    • qObs

      public final double qObs
      The observed value of sum_j T_j^2.
    • n

      public final int n
      Sample size.
    • numConstraints

      public final int numConstraints
      Number of constraints tested, K.
    • numBootstraps

      public final int numBootstraps
      Number of bootstrap replicates used, B.
    • labels

      public final String[] labels
      Length-K constraint labels, of the form "X _||_ Y" or "X _||_ Y | Z1,Z2".
    • t

      public final double[] t
      Length-K observed standardized statistics T_j, aligned with labels.
  • Method Details

    • topConstraints

      public List<String> topConstraints(int k)
      Constraints with the largest |T_j|, most-violated first.
      Parameters:
      k - the maximum number of constraints to return; fewer are returned if K < k.
      Returns:
      formatted "label T = value" lines, sorted by decreasing |T_j|.
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      a multi-line report giving the omnibus statistics, their p-values, and the eight most-violated constraints.