Package edu.cmu.tetrad.regression
Class RegressionDataset
java.lang.Object
edu.cmu.tetrad.regression.RegressionDataset
- All Implemented Interfaces:
- Regression
Implements a regression model from tabular continuous data.
- Author:
- Joseph Ramsey
- 
Constructor SummaryConstructorsConstructorDescriptionRegressionDataset(DataSet data) Constructs a linear regression model for the given tabular data set.RegressionDataset(Matrix data, List<Node> variables) 
- 
Method SummaryModifier and TypeMethodDescriptiongetGraph()static RegressionResultregress(double[] target, double[][] regressors) Regressestargeton theregressors, yielding a regression plane.Regresses the target on the given regressors.voidsetAlpha(double alpha) Sets the alpha level for deciding which regressors are significant based on their p values.voidsetRows(int[] rows) 
- 
Constructor Details- 
RegressionDatasetConstructs a linear regression model for the given tabular data set.- Parameters:
- data- A rectangular data set, the relevant variables of which are continuous.
 
- 
RegressionDataset
 
- 
- 
Method Details- 
setAlphapublic void setAlpha(double alpha) Sets the alpha level for deciding which regressors are significant based on their p values.- Specified by:
- setAlphain interface- Regression
- Parameters:
- alpha- the significance level.
 
- 
getGraph- Specified by:
- getGraphin interface- Regression
- Returns:
- This graph.
 
- 
regressRegresses the target on the given regressors.- Specified by:
- regressin interface- Regression
- Parameters:
- target- The target variable.
- regressors- The regressor variables.
- Returns:
- The regression plane, specifying for each regressors its coefficeint, se, t, and p values, and specifying the same for the constant.
 
- 
regress
- 
regressDescription copied from interface:RegressionRegressestargeton theregressors, yielding a regression plane.- Specified by:
- regressin interface- Regression
- Parameters:
- target- the target variable, being regressed.
- regressors- the list of variables being regressed on.
- Returns:
- the regression plane.
 
- 
setRowspublic void setRows(int[] rows) 
- 
getResidualsWithoutFirstRegressor
 
-