Package edu.cmu.tetrad.regression
Class LogisticRegression
java.lang.Object
edu.cmu.tetrad.regression.LogisticRegression
- All Implemented Interfaces:
- TetradSerializable,- Serializable
Implements a logistic regression algorithm based on a Javascript
 implementation by John Pezzullo.  That implementation together with a
 description of logistic regression and some examples appear on his web page
 http://members.aol.com/johnp71/logistic.html
 
See also Applied Logistic Regression, by D.W. Hosmer and S. Lemeshow. 1989, John Wiley and Sons, New York which Pezzullo references. In particular see pages 27-29.
- Author:
- Frank Wimberly
- See Also:
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoublegetAlpha()regress(DiscreteVariable x, List<Node> regressors) x must be binary; regressors must be continuous or binary.static LogisticRegressionGenerates a simple exemplar of this class to test serialization.voidsetAlpha(double alpha) Sets the alpha level.voidsetRows(int[] rows) 
- 
Constructor Details- 
LogisticRegressionA mixed data set. The targets of regresson must be binary. Regressors must be continuous or binary. Other variables don't matter.
 
- 
- 
Method Details- 
serializableInstanceGenerates a simple exemplar of this class to test serialization.
- 
regressx must be binary; regressors must be continuous or binary.
- 
getAlphapublic double getAlpha()- Returns:
- the alpha level.
 
- 
setAlphapublic void setAlpha(double alpha) Sets the alpha level.
- 
setRowspublic void setRows(int[] rows) 
 
-