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, setInterceptModelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataSet, getMatrixX, getNumberOfObservations, getVectorY, isInterceptModel, setInterceptModelprotected 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
StatisticalDataStructureconstructMatrices in interface StatisticalDataStructureconstructMatrices in class GenericStatisticalDataStructuremodelDefinition - the definition of the model that serves to design the matricesStatisticalDataExceptionprotected void recordRandomEffects(java.lang.String effectName)
throws StatisticalDataException
StatisticalDataExceptionprotected void setRandomEffectStructure()
throws StatisticalDataException
StatisticalDataExceptionpublic java.util.Set<java.lang.String> getHierarchicalStructureLevel()
HierarchicalStatisticalDataStructuregetHierarchicalStructureLevel in interface HierarchicalStatisticalDataStructurepublic java.util.Map<java.lang.String,DataBlock> getHierarchicalStructure()
HierarchicalStatisticalDataStructuregetHierarchicalStructure in interface HierarchicalStatisticalDataStructurepublic void setHierarchicalStructureLevel(java.util.List<java.lang.String> hierarchicalStructureLevels)
throws StatisticalDataException
HierarchicalStatisticalDataStructuresetHierarchicalStructureLevel in interface HierarchicalStatisticalDataStructurehierarchicalStructureLevels - a List of Strings that contains the field names that serve as hierarchical indexStatisticalDataExceptionpublic boolean isThereAnyHierarchicalStructure()
HierarchicalStatisticalDataStructureisThereAnyHierarchicalStructure in interface HierarchicalStatisticalDataStructurepublic java.util.Map<java.lang.String,Matrix> getMatrixZ()
HierarchicalStatisticalDataStructuregetMatrixZ in interface HierarchicalStatisticalDataStructure