public class LinearModel extends AbstractStatisticalModel<StatisticalDataStructure>
completeLLK
Constructor and Description |
---|
LinearModel(DataSet dataSet,
java.lang.String modelDefinition)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected GenericStatisticalDataStructure |
getDataStructureFromDataSet(DataSet dataSet)
This method returns the appropriate StatisticalDataStructure from the dataSet.
|
Matrix |
getParameters() |
Matrix |
getPredicted()
This method returns a vector of predicted values.
|
Matrix |
getResiduals()
This method returns a vector of residuals, that is observed values minus predictions.
|
double |
getResidualVariance()
This method returns the residual variance only if the optimizer is an instance
of OLSOptimizer.
|
protected Estimator |
instantiateDefaultEstimator()
This method defines the default optimizer which is to be specific to the derived classes.
|
protected void |
setCompleteLLK()
This method sets the log-likelihood function of the model.
|
void |
setParameters(Matrix beta) |
doEstimation, getCompleteLogLikelihood, getConvergenceCriterion, getDataStructure, getEstimator, getModelDefinition, getOptimizerParameters, getSummary, setConvergenceCriterion, setModelDefinition, setOptimizer, setOptimizerParameters
public LinearModel(DataSet dataSet, java.lang.String modelDefinition)
dataSet
- a DataSet instancemodelDefinition
- a model definitionpublic void setParameters(Matrix beta)
public Matrix getParameters()
public double getResidualVariance()
public Matrix getPredicted()
StatisticalModel
public Matrix getResiduals()
StatisticalModel
protected void setCompleteLLK()
AbstractStatisticalModel
setCompleteLLK
in class AbstractStatisticalModel<StatisticalDataStructure>
protected Estimator instantiateDefaultEstimator()
AbstractStatisticalModel
instantiateDefaultEstimator
in class AbstractStatisticalModel<StatisticalDataStructure>
protected GenericStatisticalDataStructure getDataStructureFromDataSet(DataSet dataSet)
AbstractStatisticalModel
getDataStructureFromDataSet
in class AbstractStatisticalModel<StatisticalDataStructure>
dataSet
- a DataSet instance