public final class PowerResourceHelper extends Object
Constructor and Description |
---|
PowerResourceHelper() |
Modifier and Type | Method and Description |
---|---|
static edu.cudenver.bios.matrix.FixedRandomMatrix |
betaMatrixFromStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign)
Create a fixed/random beta matrix from the study design.
|
static edu.cudenver.bios.matrix.FixedRandomMatrix |
betweenParticipantContrastFromStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign)
Create a fixed/random between participant contrast (C matrix)
from the study design.
|
static org.apache.commons.math3.linear.RealMatrix |
designMatrixFromStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign)
Return the design matrix if present, or generate a cell means coded
design essence matrix for "guided" study designs
|
static edu.ucdenver.bios.webservice.common.domain.NamedMatrixList |
namedMatrixListFromStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign)
Create the list of matrices generated by the specified study design
|
static org.apache.commons.math3.linear.RealMatrix |
sigmaCovariateMatrixFromStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign)
Create a sigma covariate matrix from the study design.
|
static org.apache.commons.math3.linear.RealMatrix |
sigmaOutcomesCovariateMatrixFromStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign,
org.apache.commons.math3.linear.RealMatrix sigmaG,
org.apache.commons.math3.linear.RealMatrix sigmaY)
Create a sigma outcomes/covariate matrix from the study design.
|
static org.apache.commons.math3.linear.RealMatrix |
sigmaOutcomesMatrixFromStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign)
Create a sigma outcomes matrix from the study design.
|
static edu.cudenver.bios.power.parameters.GLMMPowerParameters |
studyDesignToPowerParameters(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign)
Convert a study design object into a power parameters object
TODO: should be removed once modifications to java stats are complete
|
static org.apache.commons.math3.linear.RealMatrix |
thetaNullMatrixFromStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign,
edu.cudenver.bios.matrix.FixedRandomMatrix C,
org.apache.commons.math3.linear.RealMatrix U)
Create a null hypothesis matrix from the study design.
|
static edu.ucdenver.bios.webservice.common.domain.NamedMatrix |
toNamedMatrix(org.apache.commons.math3.linear.RealMatrix matrix,
String name)
This method takes a Real Matrix and converts it into a Named Matrix and
returns that Named Matrix.
|
static edu.ucdenver.bios.webservice.common.domain.PowerResult |
toPowerResult(edu.cudenver.bios.power.GLMMPower glmmPower)
Convert a GLMMPower object to PowerResult objects
|
static edu.ucdenver.bios.webservice.common.domain.PowerResultList |
toPowerResultList(List<edu.cudenver.bios.power.Power> powerList)
Convert a list of GLMMPower objects to a list of PowerResult objects
|
static org.apache.commons.math3.linear.RealMatrix |
toRealMatrix(edu.ucdenver.bios.webservice.common.domain.NamedMatrix namedMatrix)
This method takes Named Matrix and converts it into a RealMatrix and
returns a Real Matrix.
|
static org.apache.commons.math3.linear.RealMatrix |
withinParticipantContrastFromStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign)
Create the within participant contrast (U matrix)
from the study design.
|
public static edu.cudenver.bios.power.parameters.GLMMPowerParameters studyDesignToPowerParameters(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign) throws IllegalArgumentException
studyDesign
- IllegalArgumentException
public static org.apache.commons.math3.linear.RealMatrix designMatrixFromStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign)
studyDesign
- study design objectpublic static edu.cudenver.bios.matrix.FixedRandomMatrix betaMatrixFromStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign)
studyDesign
- study design objectpublic static edu.cudenver.bios.matrix.FixedRandomMatrix betweenParticipantContrastFromStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign)
studyDesign
- study design objectpublic static org.apache.commons.math3.linear.RealMatrix withinParticipantContrastFromStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign)
studyDesign
- study design objectpublic static org.apache.commons.math3.linear.RealMatrix sigmaOutcomesMatrixFromStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign)
studyDesign
- study design objectpublic static org.apache.commons.math3.linear.RealMatrix sigmaOutcomesCovariateMatrixFromStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign, org.apache.commons.math3.linear.RealMatrix sigmaG, org.apache.commons.math3.linear.RealMatrix sigmaY)
studyDesign
- study design objectpublic static org.apache.commons.math3.linear.RealMatrix sigmaCovariateMatrixFromStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign)
studyDesign
- study design objectpublic static org.apache.commons.math3.linear.RealMatrix thetaNullMatrixFromStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign, edu.cudenver.bios.matrix.FixedRandomMatrix C, org.apache.commons.math3.linear.RealMatrix U)
studyDesign
- study design objectpublic static edu.ucdenver.bios.webservice.common.domain.NamedMatrixList namedMatrixListFromStudyDesign(edu.ucdenver.bios.webservice.common.domain.StudyDesign studyDesign)
studyDesign
- study design objectpublic static org.apache.commons.math3.linear.RealMatrix toRealMatrix(edu.ucdenver.bios.webservice.common.domain.NamedMatrix namedMatrix)
namedMatrix
- The matrix is a input matrix of type NamedMatrix which is to
be converted to type RealMatrix.public static edu.ucdenver.bios.webservice.common.domain.NamedMatrix toNamedMatrix(org.apache.commons.math3.linear.RealMatrix matrix, String name)
matrix
- The matrix is a input matrix of type RealMatrix and is to be
converted to a NamedMatrix.name
- the name is a String, which is to be assigned to named matrix.public static edu.ucdenver.bios.webservice.common.domain.PowerResultList toPowerResultList(List<edu.cudenver.bios.power.Power> powerList)
powerList
- GLMMPower object listpublic static edu.ucdenver.bios.webservice.common.domain.PowerResult toPowerResult(edu.cudenver.bios.power.GLMMPower glmmPower)
glmmPower
- GLMMPower objectUniversity of Colorado Denver, Department of Biostatistics and Informatics