public class GenericHierarchicalStatisticalDataStructure extends GenericStatisticalDataStructure implements HierarchicalStatisticalDataStructure
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,DataBlock> |
hierarchicalStructure |
protected java.util.Map<java.lang.String,Matrix> |
matricesZ
The string represents the hierarchical level.
|
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
randomEffectsSpecifications |
dataSet, isInterceptModel, matrixX, vectorY
Constructor and Description |
---|
GenericHierarchicalStatisticalDataStructure(DataSet dataSet)
General constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
constructMatrices(java.lang.String modelDefinition)
This method builds the matrices that are required to fit the model.
|
java.util.Map<java.lang.String,DataBlock> |
getHierarchicalStructure()
This method returns the index of the observations by levels and id within the level.
|
java.util.Set<java.lang.String> |
getHierarchicalStructureLevel()
This method returns the list of the different levels of the hierarchical structure.
|
java.util.Map<java.lang.String,Matrix> |
getMatrixZ()
This method returns a Map of Matrix instance.
|
boolean |
isThereAnyHierarchicalStructure()
Return true if the hierarchical structure has been set or false otherwise.
|
protected void |
recordRandomEffects(java.lang.String effectName) |
void |
setHierarchicalStructureLevel(java.util.List<java.lang.String> hierarchicalStructureLevels)
This method set the hierarchical structures of the data set.
|
protected void |
setRandomEffectStructure() |
computeDummyVariables, getDataSet, getMatrixX, getNumberOfObservations, getVectorY, isInterceptModel, setInterceptModel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataSet, getMatrixX, getNumberOfObservations, getVectorY, isInterceptModel, setInterceptModel
protected java.util.Map<java.lang.String,DataBlock> hierarchicalStructure
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> randomEffectsSpecifications
protected java.util.Map<java.lang.String,Matrix> matricesZ
public GenericHierarchicalStatisticalDataStructure(DataSet dataSet)
dataSet
- a DataSet instancepublic void constructMatrices(java.lang.String modelDefinition) throws StatisticalDataException
StatisticalDataStructure
constructMatrices
in interface StatisticalDataStructure
constructMatrices
in class GenericStatisticalDataStructure
modelDefinition
- the definition of the model that serves to design the matricesStatisticalDataException
protected void recordRandomEffects(java.lang.String effectName) throws StatisticalDataException
StatisticalDataException
protected void setRandomEffectStructure() throws StatisticalDataException
StatisticalDataException
public java.util.Set<java.lang.String> getHierarchicalStructureLevel()
HierarchicalStatisticalDataStructure
getHierarchicalStructureLevel
in interface HierarchicalStatisticalDataStructure
public java.util.Map<java.lang.String,DataBlock> getHierarchicalStructure()
HierarchicalStatisticalDataStructure
getHierarchicalStructure
in interface HierarchicalStatisticalDataStructure
public void setHierarchicalStructureLevel(java.util.List<java.lang.String> hierarchicalStructureLevels) throws StatisticalDataException
HierarchicalStatisticalDataStructure
setHierarchicalStructureLevel
in interface HierarchicalStatisticalDataStructure
hierarchicalStructureLevels
- a List of Strings that contains the field names that serve as hierarchical indexStatisticalDataException
public boolean isThereAnyHierarchicalStructure()
HierarchicalStatisticalDataStructure
isThereAnyHierarchicalStructure
in interface HierarchicalStatisticalDataStructure
public java.util.Map<java.lang.String,Matrix> getMatrixZ()
HierarchicalStatisticalDataStructure
getMatrixZ
in interface HierarchicalStatisticalDataStructure