edu.ucla.stat.SOCR.analyses.result
Class SimpleLinearRegressionResult

java.lang.Object
  extended by edu.ucla.stat.SOCR.analyses.result.Result
      extended by edu.ucla.stat.SOCR.analyses.result.AnalysisResult
          extended by edu.ucla.stat.SOCR.analyses.result.LinearModelResult
              extended by edu.ucla.stat.SOCR.analyses.result.SimpleLinearRegressionResult

public class SimpleLinearRegressionResult
extends LinearModelResult


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.ucla.stat.SOCR.analyses.result.LinearModelResult
LinearModelResult.Intercept, LinearModelResult.PlotData, LinearModelResult.Predictor
 
Field Summary
 double alpha
           
static java.lang.String ALPHA
          estimated intercept of The model.
static java.lang.String ALPHA_P_VALUE
          The p-value of testing if ALPHA equals to zero.
static java.lang.String ALPHA_SE
          estimated standard deviation of The intercept ALPHA.
static java.lang.String ALPHA_T_STAT
          The p-value of testing if ALPHA equals to zero.
 java.lang.String alphaPValue
           
 double alphaSE
           
 double alphaTStat
           
 double beta
           
static java.lang.String BETA
          estimated slope of The model.
static java.lang.String BETA_NAME
          The name of BETA variable.
static java.lang.String BETA_P_VALUE
          The p-value of testing if BETA equals to zero.
static java.lang.String BETA_SD
          estimated standard deviation of The slope BETA.
static java.lang.String BETA_T_STAT
          The t-statistic of testing if BETA equals to zero.
 java.lang.String betaName
           
 java.lang.String betaPValue
           
 double betaSE
           
 double betaTStat
           
static java.lang.String CORRELATION_XY
          The correlation of x and y.
static java.lang.String COVARIANCE_XY
          The covariance of x and y.
static java.lang.String MEAN_PREDICTED
           
static java.lang.String MEAN_RESIDUALS
           
static java.lang.String MEAN_X
          The mean of The independent varialbe's data.
static java.lang.String MEAN_Y
          The mean of The dependent varialbe's data.
static java.lang.String PREDICTED
          The predicted value of The model.
static java.lang.String PREDICTED_LOWER
          The predicted value of The model.
static java.lang.String PREDICTED_UPPER
          The predicted value of The model.
static java.lang.String RESIDUALS
          The predicted residuals of The model.
static java.lang.String SD_PREDICT
           
static java.lang.String SD_PREDICTED
           
static java.lang.String SD_RESIDUALS
           
static java.lang.String SD_X
          The SD of The independent varialbe's data.
static java.lang.String SD_Y
          The SD of The dependent varialbe's data.
static java.lang.String SORTED_NORMAL_QUANTILES
          Normal quantiles of the sorted residuals.
static java.lang.String SORTED_RESIDUALS
          PREDICTED double[] after being sorted ascendantly.
static java.lang.String SORTED_RESIDUALS_INDEX
          The SORTED_RESIDUALS's mapping to the original index.
static java.lang.String SORTED_STANDARDIZED_RESIDUALS
           
static java.lang.String VAR_PREDICT
           
 
Fields inherited from class edu.ucla.stat.SOCR.analyses.result.LinearModelResult
ANOVA_Y_GROUP_MEANS, ANOVA_Y_MEAN, BETA_SE, BETA_VAR, DF, DF_ERROR, DF_GROUP, DF_MODEL, DF_TOTAL, F_VALUE_GROUP, intercept, MSE_GROUP, MSS_ERROR, MSS_MODEL, P_VALUE_GROUP, plotData, predictor, predictorList, R_SQUARED, RSS_ERROR, RSS_GROUP, RSS_MODEL, RSS_TOTAL, SCORE, SLR_MEAN_X, SLR_MEAN_Y, SORTED_STANDARDIZED_NORMAL_QUANTILES, TAG_adjusted_r_squared, TAG_analysis_output, TAG_coefficients, TAG_cooks_distance, TAG_degrees_freedom, TAG_degrees_freedom_error, TAG_degrees_freedom_model, TAG_estimate, TAG_f_statistics, TAG_intercept, TAG_linear_regression_result, TAG_multiple_r_squared, TAG_normal_scores, TAG_p_value, TAG_plot_data, TAG_predicted, TAG_predictor, TAG_residual_standard_error, TAG_residuals, TAG_root_standardized_residuals, TAG_standard_error, TAG_standardized_residuals, TAG_statistics, TAG_t_value, TAG_theoretical_quantiles, TAG_value, TAG_variable_name, VARIABLE_LIST, Z_SCORE
 
Fields inherited from class edu.ucla.stat.SOCR.analyses.result.AnalysisResult
dFormat
 
Fields inherited from class edu.ucla.stat.SOCR.analyses.result.Result
dom, F_VALUE, graph, JAVA_ERROR, MEAN_DIFF, P_VALUE, P_VALUE_ONE_SIDED, P_VALUE_TWO_SIDED, R_SQUARE, SAMPLE_MEAN, SAMPLE_VAR, SIGN_TEST_STAT, SIGNED_TEST_W_MEAN, SIGNED_TEST_W_SCORE, SIGNED_TEST_W_STAT, SIGNED_TEST_W_VAR, T_STAT, texture, WILCOXON_R_MIN, WILCOXON_R_PRIME, WILCOXON_RANK_SUM_SMALLER, xmlResultString, Z_STAT
 
Constructor Summary
SimpleLinearRegressionResult(org.w3c.dom.Document dom)
           
SimpleLinearRegressionResult(java.util.HashMap<java.lang.String,java.lang.Object> texture)
          Constructors
SimpleLinearRegressionResult(java.util.HashMap<java.lang.String,java.lang.Object> texture, java.util.HashMap<java.lang.String,java.lang.Object> graph)
           
SimpleLinearRegressionResult(java.lang.String xmlResultString)
           
 
Method Summary
 double getAlpha()
           
 double getAlphaPValue()
           
 double getAlphaSE()
           
 double getAlphaTStat()
           
 double getBeta()
           
 java.lang.String getBetaName()
           
 double getBetaPValue()
           
 double getBetaSE()
           
 double getBetaTStat()
           
 double getCorrelationXY()
           
 double getCovarianceXY()
           
 double getMeanPredicted()
           
 double getMeanResiduals()
           
 double getMeanX()
          Accessors
 double getMeanY()
           
 double[] getPredicted()
           
 double[] getPredictedLowerBound()
           
 double[] getPredictedUpperBound()
           
 double[] getResiduals()
           
 double getRSquare()
           
 double[] getSDPredict()
           
 double getSDPredicted()
           
 double getSDResiduals()
           
 double getSDX()
           
 double getSDY()
           
 double[] getSortedNormalQuantiles()
           
 double[] getSortedResiduals()
           
 int[] getSortedResidualsIndex()
           
 double[] getSortedStandardizedNormalQuantiles()
           
 double[] getSortedStandardizedResiduals()
           
 double[] getVarPredict()
           
static void main(java.lang.String[] args)
           
 void setAlpha(double input)
           
 
Methods inherited from class edu.ucla.stat.SOCR.analyses.result.LinearModelResult
getIntercept, getPlotData, getPredictor, parseIntercept, parsePlotData, parsePredictors
 
Methods inherited from class edu.ucla.stat.SOCR.analyses.result.AnalysisResult
getFormattedDouble, getFormattedGroup, getFormattedGroupArray, setDecimalFormat
 
Methods inherited from class edu.ucla.stat.SOCR.analyses.result.Result
getGraph, getTexture
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MEAN_X

public static final java.lang.String MEAN_X
The mean of The independent varialbe's data.

See Also:
Constant Field Values

MEAN_Y

public static final java.lang.String MEAN_Y
The mean of The dependent varialbe's data.

See Also:
Constant Field Values

SD_X

public static final java.lang.String SD_X
The SD of The independent varialbe's data.

See Also:
Constant Field Values

SD_Y

public static final java.lang.String SD_Y
The SD of The dependent varialbe's data.

See Also:
Constant Field Values

COVARIANCE_XY

public static final java.lang.String COVARIANCE_XY
The covariance of x and y.

See Also:
Constant Field Values

CORRELATION_XY

public static final java.lang.String CORRELATION_XY
The correlation of x and y.

See Also:
Constant Field Values

ALPHA

public static final java.lang.String ALPHA
estimated intercept of The model.

See Also:
Constant Field Values

BETA

public static final java.lang.String BETA
estimated slope of The model.

See Also:
Constant Field Values

ALPHA_SE

public static final java.lang.String ALPHA_SE
estimated standard deviation of The intercept ALPHA.

See Also:
Constant Field Values

BETA_SD

public static final java.lang.String BETA_SD
estimated standard deviation of The slope BETA.

See Also:
Constant Field Values

ALPHA_P_VALUE

public static final java.lang.String ALPHA_P_VALUE
The p-value of testing if ALPHA equals to zero.

See Also:
Constant Field Values

BETA_P_VALUE

public static final java.lang.String BETA_P_VALUE
The p-value of testing if BETA equals to zero.

See Also:
Constant Field Values

ALPHA_T_STAT

public static final java.lang.String ALPHA_T_STAT
The p-value of testing if ALPHA equals to zero.

See Also:
Constant Field Values

BETA_T_STAT

public static final java.lang.String BETA_T_STAT
The t-statistic of testing if BETA equals to zero.

See Also:
Constant Field Values

BETA_NAME

public static final java.lang.String BETA_NAME
The name of BETA variable.

See Also:
Constant Field Values

PREDICTED

public static final java.lang.String PREDICTED
The predicted value of The model. It maps to a double[].

See Also:
Constant Field Values

PREDICTED_UPPER

public static final java.lang.String PREDICTED_UPPER
The predicted value of The model. It maps to a double[].

See Also:
Constant Field Values

PREDICTED_LOWER

public static final java.lang.String PREDICTED_LOWER
The predicted value of The model. It maps to a double[].

See Also:
Constant Field Values

VAR_PREDICT

public static final java.lang.String VAR_PREDICT
See Also:
Constant Field Values

SD_PREDICT

public static final java.lang.String SD_PREDICT
See Also:
Constant Field Values

RESIDUALS

public static final java.lang.String RESIDUALS
The predicted residuals of The model. It maps to a double[].

See Also:
Constant Field Values

SORTED_RESIDUALS

public static final java.lang.String SORTED_RESIDUALS
PREDICTED double[] after being sorted ascendantly. It maps to a double[].

See Also:
Constant Field Values

SORTED_RESIDUALS_INDEX

public static final java.lang.String SORTED_RESIDUALS_INDEX
The SORTED_RESIDUALS's mapping to the original index. It maps to a int[].

See Also:
Constant Field Values

SORTED_STANDARDIZED_RESIDUALS

public static final java.lang.String SORTED_STANDARDIZED_RESIDUALS
See Also:
Constant Field Values

SORTED_NORMAL_QUANTILES

public static final java.lang.String SORTED_NORMAL_QUANTILES
Normal quantiles of the sorted residuals. It maps to a double[].

See Also:
Constant Field Values

MEAN_PREDICTED

public static final java.lang.String MEAN_PREDICTED
See Also:
Constant Field Values

SD_PREDICTED

public static final java.lang.String SD_PREDICTED
See Also:
Constant Field Values

MEAN_RESIDUALS

public static final java.lang.String MEAN_RESIDUALS
See Also:
Constant Field Values

SD_RESIDUALS

public static final java.lang.String SD_RESIDUALS
See Also:
Constant Field Values

alpha

public double alpha

beta

public double beta

alphaSE

public double alphaSE

betaSE

public double betaSE

alphaTStat

public double alphaTStat

betaTStat

public double betaTStat

alphaPValue

public java.lang.String alphaPValue

betaPValue

public java.lang.String betaPValue

betaName

public java.lang.String betaName
Constructor Detail

SimpleLinearRegressionResult

public SimpleLinearRegressionResult(java.util.HashMap<java.lang.String,java.lang.Object> texture)
Constructors


SimpleLinearRegressionResult

public SimpleLinearRegressionResult(java.util.HashMap<java.lang.String,java.lang.Object> texture,
                                    java.util.HashMap<java.lang.String,java.lang.Object> graph)

SimpleLinearRegressionResult

public SimpleLinearRegressionResult(java.lang.String xmlResultString)

SimpleLinearRegressionResult

public SimpleLinearRegressionResult(org.w3c.dom.Document dom)
Method Detail

getMeanX

public double getMeanX()
Accessors


getMeanY

public double getMeanY()

getSDX

public double getSDX()

getSDY

public double getSDY()

getMeanPredicted

public double getMeanPredicted()

getMeanResiduals

public double getMeanResiduals()

getSDPredicted

public double getSDPredicted()

getSDResiduals

public double getSDResiduals()

getCovarianceXY

public double getCovarianceXY()

getCorrelationXY

public double getCorrelationXY()

getRSquare

public double getRSquare()

getAlpha

public double getAlpha()

setAlpha

public void setAlpha(double input)

getBeta

public double getBeta()

getAlphaSE

public double getAlphaSE()

getBetaSE

public double getBetaSE()

getAlphaTStat

public double getAlphaTStat()

getBetaTStat

public double getBetaTStat()

getAlphaPValue

public double getAlphaPValue()

getBetaPValue

public double getBetaPValue()

getBetaName

public java.lang.String getBetaName()

getResiduals

public double[] getResiduals()

getPredicted

public double[] getPredicted()

getPredictedUpperBound

public double[] getPredictedUpperBound()

getPredictedLowerBound

public double[] getPredictedLowerBound()

getSortedResiduals

public double[] getSortedResiduals()

getSortedStandardizedResiduals

public double[] getSortedStandardizedResiduals()

getSortedResidualsIndex

public int[] getSortedResidualsIndex()

getSortedNormalQuantiles

public double[] getSortedNormalQuantiles()

getSortedStandardizedNormalQuantiles

public double[] getSortedStandardizedNormalQuantiles()

getVarPredict

public double[] getVarPredict()

getSDPredict

public double[] getSDPredict()

main

public static void main(java.lang.String[] args)