Package edu.cmu.tetrad.regression
Class RegressionCovariance
java.lang.Object
edu.cmu.tetrad.regression.RegressionCovariance
- All Implemented Interfaces:
Regression
Implements a regression model from correlations--that is, from a correlation matrix, a list of standard deviations,
and a list of means.
- Author:
- josephramsey
-
Constructor Summary
ConstructorsConstructorDescriptionRegressionCovariance
(ICovarianceMatrix covariances) Constructs a covariance-based regression model using the given covariance matrix, assuming that no means are specified. -
Method Summary
Modifier and TypeMethodDescriptiongetGraph()
Regressestarget
on theregressors
, yielding a regression plane.Regresses the given target on the given regressors, yielding a regression plane, in which coefficients are given for each regressor plus the constant (if means have been specified, that is, for the last), and se, t, and p values are given for each regressor.void
setAlpha
(double alpha) Sets the cutoff for significance.
-
Constructor Details
-
RegressionCovariance
Constructs a covariance-based regression model using the given covariance matrix, assuming that no means are specified.- Parameters:
covariances
- The covariance matrix.
-
-
Method Details
-
setAlpha
public void setAlpha(double alpha) Sets the cutoff for significance. Parameters with p values less than this will be labeled as significant.- Specified by:
setAlpha
in interfaceRegression
- Parameters:
alpha
- The significance level.
-
getGraph
- Specified by:
getGraph
in interfaceRegression
- Returns:
- This graph.
-
regress
Regresses the given target on the given regressors, yielding a regression plane, in which coefficients are given for each regressor plus the constant (if means have been specified, that is, for the last), and se, t, and p values are given for each regressor.- Specified by:
regress
in interfaceRegression
- Parameters:
target
- The variable being regressed.regressors
- The list of regressors.- Returns:
- the regression plane.
-
regress
Description copied from interface:Regression
Regressestarget
on theregressors
, yielding a regression plane.- Specified by:
regress
in interfaceRegression
- Parameters:
target
- the target variable, being regressed.regressors
- the list of variables being regressed on.- Returns:
- the regression plane.
-