public class LinearModelSummary extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
INTERCEPT_COEFFICIENT_NAME |
Modifier | Constructor and Description |
---|---|
protected |
LinearModelSummary()
Construct an empty summary.
|
|
LinearModelSummary(org.rosuda.REngine.REXP summaryLm,
org.rosuda.REngine.REXP anova,
String[] factorNames)
Construct from the result of evaluation of an R call. should be deprecated because we're not using R integration
|
|
LinearModelSummary(String key)
Construct an empty summary.
|
|
LinearModelSummary(String k,
Double[] coefficients,
Double[] residuals,
List<String> terms,
DoubleMatrix<String,String> contrastCoefficients,
Double[] effects,
Double[] stdevUnscaled,
double rsquared,
double adjRsquared,
double fstat,
Integer ndof,
Integer ddof,
GenericAnovaResult anovaResult,
double sigma,
boolean isShrunken) |
public static final String INTERCEPT_COEFFICIENT_NAME
public LinearModelSummary(org.rosuda.REngine.REXP summaryLm, org.rosuda.REngine.REXP anova, String[] factorNames)
summaryLm
- anova
- factorNames
- as referred to in the model. Used as keys to keep track of coefficients etc.public LinearModelSummary(String key)
key
- identifierpublic LinearModelSummary(String k, Double[] coefficients, Double[] residuals, List<String> terms, DoubleMatrix<String,String> contrastCoefficients, Double[] effects, Double[] stdevUnscaled, double rsquared, double adjRsquared, double fstat, Integer ndof, Integer ddof, GenericAnovaResult anovaResult, double sigma, boolean isShrunken)
k
- optional identifiercoefficients
- residuals
- terms
- contrastCoefficients
- effects
- AKA Qtyrsquared
- adjRsquared
- fstat
- ndof
- ddof
- anovaResult
- sigma
- isShrunken
- protected LinearModelSummary()
public Double getAdjRSquared()
public GenericAnovaResult getAnova()
public Double[] getCoefficients()
public DoubleMatrix<String,String> getContrastCoefficients()
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|)"}
public Map<String,Double> getContrastCoefficients(String factorName)
factorName
- public Map<String,Double> getContrastCoefficientStderr(String factorName)
factorName
- public Map<String,Double> getContrastPValues(String factorName)
factorName
- public Map<String,Double> getContrastTStats(String factorName)
factorName
- public Double[] getEffects()
public Double getF()
public List<String> getFactorValueNames(String factorName)
factorName
- public String getFormula()
public Double getInteractionEffectP(String... fnames)
fnames
- names of the factorsubic.basecode.math.linearmodels.GenericAnovaResult#getInteractionEffectP(java.lang.String)
public Double getInterceptCoeff()
public Double getInterceptP()
public Double getInterceptT()
public String getKey()
public Collection<String> getMainEffectFactorNames()
GenericAnovaResult.getMainEffectFactorNames()
public Double getMainEffectP(String factorName)
factorName
- GenericAnovaResult.getMainEffectP(java.lang.String)
public Integer getNumeratorDof()
public Double getP()
public Double getPriorDof()
public Integer getResidualDof()
public Double[] getResiduals()
public Double getRSquared()
public Double getSigma()
public Double[] getStdevUnscaled()
public boolean hasInteractions()
GenericAnovaResult.hasInteractions()
public boolean isBaseline(String factorValueName)
public boolean isShrunken()
public void setAnova(GenericAnovaResult genericAnovaResult)
genericAnovaResult
- public void setKey(String key)
public void setPriorDof(Double priorDof)
priorDof
- the priorDof to setCopyright © 2003–2023 UBC Michael Smith Laboratories. All rights reserved.