Package ubic.basecode.math.linearmodels
Interface LinearModelSummary
-
- All Superinterfaces:
Serializable
public interface LinearModelSummary extends Serializable
-
-
Field Summary
Fields Modifier and Type Field Description static StringINTERCEPT_COEFFICIENT_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetAdjRSquared()GenericAnovaResultgetAnova()double[]getCoefficients()DoubleMatrix<String,String>getContrastCoefficients()Map<String,Double>getContrastCoefficients(String factorName)Map<String,Double>getContrastCoefficientStderr(String factorName)For the requested factor, return the standard errors associated with the contrast coefficient estimates.Map<String,Double>getContrastPValues(String factorName)Map<String,Double>getContrastTStats(String factorName)double[]getEffects()List<String>getFactorNames()doublegetFStat()doublegetInterceptCoefficient()doublegetInterceptPValue()doublegetInterceptTStat()StringgetKey()doublegetNumeratorDof()doublegetOverallPValue()Overall p value for F stat of model fit (upper tail probability)doublegetPriorDof()double[]getResiduals()doublegetResidualsDof()doublegetRSquared()doublegetSigma()Residual standard deviationdouble[]getStdevUnscaled()Unscaled standard deviations for the coefficient estimators in same order as coefficients.booleanisBaseline(String factorValueName)booleanisShrunken()Whether this is the result of emprical bayes shrinkage of variance estimates
-
-
-
Field Detail
-
INTERCEPT_COEFFICIENT_NAME
static final String INTERCEPT_COEFFICIENT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAnova
@Nullable GenericAnovaResult getAnova()
- Returns:
- may be null if ANOVA was not run.
-
getCoefficients
double[] getCoefficients()
-
getContrastCoefficients
DoubleMatrix<String,String> getContrastCoefficients()
- Returns:
- The contrast coefficients and associated statistics for all tested contrasts.
Row names are the contrasts, for example for a model with one factor "f" with two levels "a" and "b": {"(Intercept)", "fb"}. columns are always {"Estimate" ,"Std. Error", "t value", "Pr(>|t|)"}
-
getContrastCoefficientStderr
Map<String,Double> getContrastCoefficientStderr(String factorName)
For the requested factor, return the standard errors associated with the contrast coefficient estimates.
-
getContrastPValues
Map<String,Double> getContrastPValues(String factorName)
- Returns:
- Map of pvalues for the given factor. For continuous factors or factors with only one level, there will be just one value. For factors with N>2 levels, there will be N-1 values, one for each contrast (since we compute treatment contrasts to the baseline)
-
getContrastTStats
Map<String,Double> getContrastTStats(String factorName)
- Returns:
- Map of T statistics for the given factor. For continuous factors or factors with only one level, there will be just one value. For factors with N>2 levels, there will be N-1 values, one for each contrast (since we compute treatment contrasts to the baseline)
-
getEffects
double[] getEffects()
-
getFStat
double getFStat()
- Returns:
- F statistic for overall model fit.
-
getInterceptCoefficient
double getInterceptCoefficient()
-
getInterceptPValue
double getInterceptPValue()
-
getInterceptTStat
double getInterceptTStat()
-
getKey
String getKey()
-
getNumeratorDof
double getNumeratorDof()
-
getOverallPValue
double getOverallPValue()
Overall p value for F stat of model fit (upper tail probability)- Returns:
- value or NaN if it can't be computed for some reason
-
getPriorDof
double getPriorDof()
- Returns:
- the priorDof
-
getResidualsDof
double getResidualsDof()
-
getResiduals
double[] getResiduals()
- Returns:
- the residuals
-
getRSquared
double getRSquared()
- Returns:
- the rSquared
-
getAdjRSquared
double getAdjRSquared()
- Returns:
- the adjRSquared
-
getSigma
double getSigma()
Residual standard deviation
-
getStdevUnscaled
double[] getStdevUnscaled()
Unscaled standard deviations for the coefficient estimators in same order as coefficients. The standard errors are given by stdev.unscaled * sigma (a la limma)
-
isBaseline
boolean isBaseline(String factorValueName)
-
isShrunken
boolean isShrunken()
Whether this is the result of emprical bayes shrinkage of variance estimates
-
-