Record Class GRegression.BootstrapResult
java.lang.Object
java.lang.Record
edu.cmu.tetrad.search.GRegression.BootstrapResult
- Record Components:
treatments- The treatment list, fixing the order of the effect vector.outcome- The outcome.effect- The G-regression estimate on the full sample.covariance- The bootstrap estimate of the sampling covariance of the effect vector.
- Enclosing class:
GRegression
-
Constructor Summary
ConstructorsConstructorDescriptionBootstrapResult(List<Node> treatments, Node outcome, double[] effect, Matrix covariance) Creates an instance of aBootstrapResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecovariancerecord component.double[]effect()Returns the value of theeffectrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.outcome()Returns the value of theoutcomerecord component.double[]Returns the bootstrap standard errors, one per treatment.final StringtoString()Returns a string representation of this record class.Returns the value of thetreatmentsrecord component.
-
Constructor Details
-
BootstrapResult
Creates an instance of aBootstrapResultrecord class.- Parameters:
treatments- the value for thetreatmentsrecord componentoutcome- the value for theoutcomerecord componenteffect- the value for theeffectrecord componentcovariance- the value for thecovariancerecord component
-
-
Method Details
-
standardErrors
public double[] standardErrors()Returns the bootstrap standard errors, one per treatment.- Returns:
- The standard errors.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
treatments
Returns the value of thetreatmentsrecord component.- Returns:
- the value of the
treatmentsrecord component
-
outcome
-
effect
-
covariance
Returns the value of thecovariancerecord component.- Returns:
- the value of the
covariancerecord component
-