public class FGMCopulaGLModel extends GeneralizedLinearModel
Modifier and Type | Class and Description |
---|---|
protected static class |
FGMCopulaGLModel.LikelihoodValue |
individualLLK, linkFunctionType, matrixX, y
completeLLK
Constructor and Description |
---|
FGMCopulaGLModel(GeneralizedLinearModel glm,
CopulaExpression copula)
Constructor for this class
|
Modifier and Type | Method and Description |
---|---|
protected CopulaExpression |
getCopula() |
HierarchicalStatisticalDataStructure |
getDataStructure()
This method returns the data structure.
|
protected HierarchicalStatisticalDataStructure |
getDataStructureFromDataSet(DataSet dataSet)
This method returns the appropriate StatisticalDataStructure from the dataSet.
|
Matrix |
getParameters() |
void |
getSummary()
This method returns the results of the fit on screen.
|
void |
gridSearch(int parameterName,
double start,
double end,
double step)
This method scans the log likelihood function within a range of values for a particular parameter.
|
protected void |
setCompleteLLK()
This method sets the log-likelihood function of the model.
|
void |
setParameters(Matrix beta) |
java.lang.String |
toString() |
getLinearPredictions, getLinkFunctionType, getPredicted, getResiduals, initializeLinkFunction, instantiateDefaultEstimator, setModelDefinition
doEstimation, getCompleteLogLikelihood, getConvergenceCriterion, getEstimator, getModelDefinition, getOptimizerParameters, setConvergenceCriterion, setOptimizer, setOptimizerParameters
public FGMCopulaGLModel(GeneralizedLinearModel glm, CopulaExpression copula) throws StatisticalDataException
glm
- a GeneralizedLinearModel instancecopula
- a CopulaExpression instanceStatisticalDataException
- if the hierarchical level specification in the copula is not found in the data setpublic Matrix getParameters()
getParameters
in interface StatisticalModel<HierarchicalStatisticalDataStructure>
getParameters
in class GeneralizedLinearModel
public void setParameters(Matrix beta)
setParameters
in interface StatisticalModel<HierarchicalStatisticalDataStructure>
setParameters
in class GeneralizedLinearModel
public void gridSearch(int parameterName, double start, double end, double step)
parameterName
- the index of the parameterstart
- the starting valueend
- the ending valuestep
- the step between these two values.protected void setCompleteLLK()
AbstractStatisticalModel
setCompleteLLK
in class GeneralizedLinearModel
public java.lang.String toString()
toString
in class GeneralizedLinearModel
public HierarchicalStatisticalDataStructure getDataStructure()
StatisticalModel
getDataStructure
in interface StatisticalModel<HierarchicalStatisticalDataStructure>
getDataStructure
in class AbstractStatisticalModel<HierarchicalStatisticalDataStructure>
public void getSummary()
StatisticalModel
getSummary
in interface StatisticalModel<HierarchicalStatisticalDataStructure>
getSummary
in class AbstractStatisticalModel<HierarchicalStatisticalDataStructure>
protected CopulaExpression getCopula()
protected HierarchicalStatisticalDataStructure getDataStructureFromDataSet(DataSet dataSet)
AbstractStatisticalModel
getDataStructureFromDataSet
in class GeneralizedLinearModel
dataSet
- a DataSet instance