pcgivecore.oxh
| | ARCHTest(const iArchOrder) |
| | Vector ARCH test. |
| | ARTest(const iAr1, const iAr2) |
| | AR test. |
| | AddIdentitiesURF(const mA, const mPiYUrf) |
| | |
| | AddRecursiveEstimates() |
| | Adds recursive results after estimation (if not already done). |
| | ArTest(const iAr1, const iAr2) |
| | same as `PcGiveCore::ARTest`. |
| virtual | Autometrics(const dPValue, sOutliers, const bChopLags) |
| | Use automatic model selection with Autometrics. |
| virtual | AutometricsGetAll(const sFunction) |
| | Gets the customized Autometrics settings. |
| virtual | AutometricsSet(const sOpt, const val) |
| | Set an Autometrics option. |
| virtual | AutometricsSign(const sVar, const bIsNegative, const bIsExact) |
| | Sets an Autometrics 'sign restriction'. |
| | Cardt(const cTForc, const dCritOrAlpha=2, const cHstep=0) |
| | |
| | Chow(const iYear, const iPeriod) |
| | Breakpoint or forecast Chow tests. |
| | ChowByFraction(const dChowFrac) |
| | Breakpoint Chow tests. |
| | ClearEquations() |
| | |
| | ClearPendingEquations() |
| | |
| | Cointegration() |
| | Runs the cointegration analysis. |
| | CointegrationI2() |
| | Runs the I(2) cointegration analysis. |
| | Comfac() |
| | Common factor test. |
| virtual | Covar() |
| | |
| virtual | CreateInterventions(const asX) |
| | Creates the dummy vriables in the underlying database. |
| virtual | DoAutoOutput() |
| | Prints automatic post-estimation output. |
| | DoEvalEGE(const iMethod, mA, const mX, const cU) |
| | |
| | DoEvalFIML( mA, const mX, const cU, const mH) |
| | |
| | DoEvalXSLS(const iMethod, mA, const mX, const cY) |
| | |
| | DoExitEGE(const iMethod, const fAccumulate) |
| | |
| | DoInitEGE(const iInitMethod, const iMethod, const fInitModel) |
| | |
| | DoPlotHedgehog( iPlot, const sTitle, const iLineno, const cTpre, const cTforc, const mHedgehog, const mY, const asY) |
| | |
| | DoPrintForc( vYpost, vForc, vForcse, const iT1forc, const sY, const cH, const vYForScale, const iSeType, const bNumericalSE, const dCrit=2, const sTypeLabel="", vForc_lo=<>, vForc_hi=<>) |
| | |
| | DoRecursiveEGE() |
| | |
| | DoTests(const fSummary, const iRcOrder, const iAcLag0, const iAcLag1, const iArchOrder, const fNormal, const fHetero, const fHeteroX, const fReset, const fReset23, const fIndex) |
| | Prints misspecification tests. |
| | DurbinWatson() |
| | Durbin-Watson statistic. |
| | DynamicAnalysis() |
| | Prints the dynamic analysis. |
| | DynamicAnalysisMultipleEqn(const fLongRun, const fLagan, const fPolyRoots, const fRootsPlot, const fI1, const fI2) |
| | Runs the multivariate dynamic analysis. |
| | DynamicAnalysisSingleEqn(const fLongRun, const fLagan, const fPolyRoots, const fLagWeightsWrite, const iLagWeightsPlot, const fLagWeightsCumPlot) |
| | Runs the univariate dynamic analysis. |
| virtual | Estimate() |
| | Prepare and estimate the model. |
| | ExitNonLinear() |
| | Exits nonlinear estimation (NLS, ML) |
| | FillDynForecastData( mW, const asW, const cTpre, const iT1forc, const mSelgroup, const mVarsel, const mLagsel, const iReport=0) |
| | |
| | FindSelection(const sVar, const iLag) |
| | |
| | FindVarAmongI(const vY, const iIdxMissing=-1) |
| | |
| | FindVarAmongLaggedX(const vY, const iIdxMissing=-1) |
| | |
| | Forecast(const cTforc, const cHstep=0, iSEtype=1, const sbRobust=0, const cGap=0) |
| | |
| | ForecastGraphics( iPlot=0, const iBarType=0, const dCrit=2.0, const cTpre=24, const viSel=<>) |
| | Forecast graphics. |
| | ForecastHedgehogGraphics( iPlot=0, const cTforc=8, const cHstep=0, const sbRobust=0, const asY={}) |
| | |
| | FurtherOutput(const sType) |
| | Prints further output. |
| | GetAutometricsTerminals() |
| | Gets the Autometrics terminals |
| | GetCointAlpha() |
| | Get cointegration alpha. |
| | GetCointAlphaRes() |
| | Get cointegration restricted alpha. |
| | GetCointBeta() |
| | Get cointegration beta. |
| | GetCointBetaRes() |
| | Get cointegration restricted beta. |
| | GetCointEval() |
| | Get cointegration eigenvalues. |
| | GetCointRank() |
| | Get cointegration rank. |
| | GetCointRes() |
| | Get restricted cointegration results. |
| | GetDynForecastData(const cTforc, const mxLag=0) |
| | |
| | GetEquations() |
| | |
| virtual | GetGroupLabels() |
| | Defines the Y_VAR,X_VAR,... constants as array of strings. |
| virtual | GetMethodLabel() |
| | Gets the text label of the estimation method. |
| virtual | GetMethodLabels() |
| | Defines the M_NONE,M_OLS,... constants as array of strings. |
| | GetModelClass() |
| | Gets the model class. |
| | GetModelInLevels(const asY, mY, mW, const cTpre, const cTforc, const iSEtype) |
| | |
| | GetModelJacobian() |
| | Returns the SEM Jacobian matrix (inv(B)**[Pi':I])u. |
| virtual | GetModelLabel() |
| | Gets the label of the model. |
| | GetOmega() |
| | |
| virtual | GetOxCode() |
| | Gets the Ox code for the estimated model. |
| virtual | GetPackageName() |
| | Returns package name. |
| virtual | GetPackageVersion() |
| | Returns package version. |
| virtual | GetParNames() |
| | Get the names of all parameters. |
| | GetPi() |
| | Returns matrix of URF/RRF coefficients (equations in rows). |
| | GetRSS() |
| | |
| virtual | GetResVar() |
| | |
| | GetResiduals() |
| | |
| | GetRobustSEType() |
| | Get robust standard error type |
| | GetStatus(const aiConst, const aiTrend) |
| | Gets status of Constant and Trend for Cointegration analysis. |
| | GetVarNames(const aasY, const aasW) |
| | Returns variable names. |
| | GetVarPi() |
| | Returns matrix with variances of URF/RRF coefficients (equations in rows). |
| | GetVarRf() |
| | |
| | GetVarTheta() |
| | |
| | GetW() |
| | Returns the W matrix. |
| | GetWtWinv() |
| | Returns the inv(W'W) matrix. |
| | GetY() |
| | Returns the Y matrix. |
| virtual | GetcDfLoss() |
| | Returns degrees of freedom lost (number of free parameters). |
| | Grow(const cTadd) |
| | |
| | HeteroTest(const iStand, const bCross) |
| | Vector Heteroscedasticity test. |
| | IndexTest(const iMode) |
| | Index test for nonlinearity. |
| | InformationCriteria() |
| | Gets information criteria. |
| | InitNonLinear() |
| | Initializes nonlinear estimation (NLS, ML) |
| | InstabTests(const fCompact) |
| | Gets the instability test. |
| | IsUnivariate() |
| | Is univariate? |
| static | MSIS(const vForcLo, const vForcHi, const vActual, const vYForScale, const iFreq, const dAlpha) |
| | |
| | NormalityTest() |
| | Vector (non-)normality test. |
| | OmittedTest(const mZ, const asZ) |
| | Omitted variables test. |
| virtual | Output() |
| | Prints estimation output. |
| | OutputBatchCointMap() |
| | Prints Batch code to map cointegration model to I(0). |
| | OutputCoint(const iCoint) |
| | Prints I(2) cointegration test or estimation output. |
| | OutputCointI2() |
| | Prints I(2) cointegration test output. |
| | OutputCountMeanVar(const cPar, const mY, sY) |
| | Prints sample/model size and mean(Y), se(Y). |
| | OutputEqn(const sEqn, const asPar, const vPar, const vStdErr, const vStdErrRobust, const sStdErrRobust, const cTdf, const cY, const cU, const fDoPartRsq) |
| | Prints an equation of estimation output. |
| | OutputEqnStats(const dSigma, const dRss) |
| | Prints equation stats (sigma, R^2). |
| | OutputFormatted(const iType, const cSigPar, const cSigSE) |
| | Prints formatted estimation results. |
| | OutputHdr(const sType) |
| | Prints header of estimation output. |
| | OutputLogLik(const fSys, const fCoint) |
| | Prints the loglikelihood and related statistics. |
| | OutputModel() |
| | Prints the simultaneous model. |
| | OutputOutliers( dSE) |
| | Prints large residuals. |
| | OutputRF() |
| | Prints the reduced form. |
| | OutputRest(const asY, const asw) |
| | Prints more statistics. |
| | OutputSingleEqnStats(const mY, const mRes, const dSigma, const dRss, const fSimple) |
| | Prints single equation statistics. |
| | OutputSystem() |
| | Prints the system. |
| | PcGiveCore() |
| | Constructor. |
| | Portmanteau(const iLag) |
| | Portmanteau test. |
| | Print() |
| | Use `Modelbase::Output`. |
| | PrintCorrelations() |
| | Prints correlation matrix of variables in model. |
| | PrintCovar() |
| | Prints Covariance matrix of estimated parameters. |
| | PrintForecasts(const viSel=<>) |
| | Prints the forecasts after making them using `PcGiveCore::Forecast`. |
| | PrintStaticForecasts() |
| | Prints the static forecasts. |
| | ProcessPendingEquations() |
| | |
| | RSquared() |
| | R^2 statistic. |
| | Reset() |
| | Reset the object. |
| | ResetTest( ...) |
| | Reset test. |
| | RobustSE() |
| | Computes and prints robust standard errors. |
| | SeasonalRsq() |
| | Prints R^2 relative to difference and seasonals and relative to intercept adjustment. |
| | SetCFIMLCode(const sCode) |
| | Set CFIML code. |
| | SetCointRank(const cRank) |
| | Set cointegration rank. |
| | SetCointRestrict(const sGenRes) |
| | Set general cointegration restrictions. |
| | SetCointRestrictMat(const fIsCommonBeta, const mA, const mH) |
| | Set cointegration restrictions. |
| | SetDerivedForecasts(const sForcDerived) |
| | Sets the code for derived forecasts. |
| | SetEquation(const sEquation, const aModel) |
| | |
| | SetModelClass(const iModelClass) |
| | Sets the model class. |
| | SetNonlinearCode(const sCode) |
| | Set nonlinear code. |
| | SetPendingEquations(const asEquations) |
| | |
| | SetPrintRf( fPrintUrf) |
| | Toggles reduced form printing. |
| | SetRobustSEType(const iSet) |
| | Set robust standard error type |
| | SetTestDefaults() |
| | Set default parameters for misspecification tests. |
| | StaticForecasts(const iPrint=1) |
| | Computes and print the static forecasts of a dynamic model. |
| | StaticPredictions(const iPrint=1) |
| | |
| | Store(const sType, sRename="", iPrint=0) |
| | Stores results in the underlying database. |
| | TestByEqn(const iRcOrder, const iAcLag0, const iAcLag1, const iArchOrder, const fNormal, const fHetero, const fHeteroX, const fReset, const fReset23, const fIndex) |
| | Prints single equation misspecification tests. |
| | TestRestrictions( mR, ...) |
| | Tests a linear restriction, see 'Modelbase::TestRestrictions'. |
| | TestSummary() |
| | Prints misspecification test summary. |
| | UndoDifference(const iDiff, const iSeasdiff, const iFreq, const iEqn, const idxYdif, const vYlev, const idxYlev, const idxD1y, const idxDsy, mVarsel, mSelgroup, mLagsel, mY, mW, mPi, mVarPi, mJac, const cTpre, const cTforc) |
| | |
| | UnitRootTest() |
| | PcGive unit root test. |
| | accumulateEGE(const vP) |
| | |
| | do1SLS( mA, const cY, const mX) |
| | |
| | doIdentities(const fSummary) |
| | |
| | fCheckRank(const fPrint) |
| | |
| | fFimlLogLik(const vP, const adFunc, const avScore, const amHessian) |
| | |
| | fFimlLogLikEx(const vP, const adFunc, const avScore, const amHessian, mA, const mXtX, const cT) |
| | |
| | getEqnMap(const iY, const cDropU=0) |
| | |
| | getModelMap(const cDropU=0) |
| | |
| | initmodelEGE(const iInitMethod) |
| | |
| | setModelIndices() |
| | |
| | solveXSLS( mA, const mPi, const mSigma, const mXtX, const cT) |
| | |
| public: | {Y_VAR, X_VAR, U_VAR, I_VAR, SEL_VAR, A_VAR} |
| | variable types for model specification |
| public: | {M_NONE, M_OLS, M_IVE, M_RALS, M_NLS, M_ML, M_COINT, M_FIML, M_3SLS, M_2SLS, M_1SLS, M_CFIML, M_GIVE} |
| | estimators |
| public: | {MC_STATIC, MC_SINGLE, MC_NONLINEAR, MC_SYSTEM, MC_DESCRIPTIVE} |
| | |
PcGiveCore::ARCHTest(const iArchOrder)
Vector ARCH test.
- Parameters
-
| iArchOrder | int, lag length |
- Returns
-
matrix[2][2]: F-test ~ chi^2-test | F-pval ~ chi^2-pval
PcGiveCore::ARTest(const iAr1, const iAr2)
AR test.
- Parameters
-
| iAr1 | int, start lag |
| iAr2 | int, end lag |
- Returns
-
matrix[2][2]: F-test ~ chi^2-test | F-pval ~ chi^2-pval
(<> if not available)
PcGiveCore::AddIdentitiesURF(const mA, const mPiYUrf)
PcGiveCore::AddRecursiveEstimates()
Adds recursive results after estimation (if not already done).
PcGiveCore::ArTest(const iAr1, const iAr2)
same as ARTest
virtual PcGiveCore::Autometrics(const dPValue, sOutliers, const bChopLags)
Use automatic model selection with Autometrics.
- Parameters
-
| dPvalue, | pvalue for reduction (e.g. 0.01; -1 switches Autometrics off) |
| sOutliers | string with outlier mode, "none", "large" |
or a combination of "DIIS","IIS","SIS",TIS" added together with a +,
for example: "IIS+SIS"
| bChopLags | TRUE: use lag presearch |
virtual PcGiveCore::AutometricsGetAll(const sFunction)
Gets the customized Autometrics settings.
- Parameters
-
| sFunction, | name of the Autometrics function, e.g. "autometrics_set" |
- Returns
-
string
virtual PcGiveCore::AutometricsSet(const sOpt, const val)
Set an Autometrics option.
- Parameters
-
| dPvalue, | pvalue for reduction (e.g. 0.01) |
| sOpt | string with option |
| val | value for option |
virtual PcGiveCore::AutometricsSign(const sVar, const bIsNegative, const bIsExact)
Sets an Autometrics 'sign restriction'.
- Parameters
-
| sVar, | name of variable to restrict |
| bIsNegative | TRUE or FALSE |
| bIsExact | TRUE or FALSE |
PcGiveCore::Cardt(const cTForc, const dCritOrAlpha=2, const cHstep=0)
PcGiveCore::Chow(const iYear, const iPeriod)
Breakpoint or forecast Chow tests.
- Parameters
-
| iYear | int, year of break |
| iPeriod | int, period of break |
- Returns
-
matrix[2][2]: ftest ~ chowtest | pval ~ chowpval.
PcGiveCore::ChowByFraction(const dChowFrac)
Breakpoint Chow tests.
- Parameters
-
| dChowFrac | double, sample fraction |
- Returns
-
matrix[2][2]: ftest ~ chowtest | pval ~ chowpval.
PcGiveCore::ClearEquations()
PcGiveCore::ClearPendingEquations()
PcGiveCore::Cointegration()
Runs the cointegration analysis.
- Returns
-
matrix[5][n] with eval, trace, pval, maxev, pval
PcGiveCore::CointegrationI2()
Runs the I(2) cointegration analysis.
- Returns
-
matrix[2][c] with tests and pvalues
PcGiveCore::Comfac()
Common factor test.
- Returns
-
matrix[p][2]: test ~ df
virtual PcGiveCore::Covar()
virtual PcGiveCore::CreateInterventions(const asX)
Creates the dummy vriables in the underlying database.
- Parameters
-
| asX | array of variable names. |
virtual PcGiveCore::DoAutoOutput()
Prints automatic post-estimation output.
PcGiveCore::DoEvalEGE(const iMethod, mA, const mX, const cU)
PcGiveCore::DoEvalFIML( mA, const mX, const cU, const mH)
PcGiveCore::DoEvalXSLS(const iMethod, mA, const mX, const cY)
PcGiveCore::DoExitEGE(const iMethod, const fAccumulate)
PcGiveCore::DoInitEGE(const iInitMethod, const iMethod, const fInitModel)
PcGiveCore::DoPlotHedgehog( iPlot, const sTitle, const iLineno, const cTpre, const cTforc, const mHedgehog, const mY, const asY)
PcGiveCore::DoPrintForc( vYpost, vForc, vForcse, const iT1forc, const sY, const cH, const vYForScale, const iSeType, const bNumericalSE, const dCrit=2, const sTypeLabel="", vForc_lo=<>, vForc_hi=<>)
PcGiveCore::DoRecursiveEGE()
PcGiveCore::DoTests(const fSummary, const iRcOrder, const iAcLag0, const iAcLag1, const iArchOrder, const fNormal, const fHetero, const fHeteroX, const fReset, const fReset23, const fIndex)
Prints misspecification tests.
PcGiveCore::DurbinWatson()
Durbin-Watson statistic.
- Returns
-
double: dw.
PcGiveCore::DynamicAnalysis()
Prints the dynamic analysis.
PcGiveCore::DynamicAnalysisMultipleEqn(const fLongRun, const fLagan, const fPolyRoots, const fRootsPlot, const fI1, const fI2)
Runs the multivariate dynamic analysis.
PcGiveCore::DynamicAnalysisSingleEqn(const fLongRun, const fLagan, const fPolyRoots, const fLagWeightsWrite, const iLagWeightsPlot, const fLagWeightsCumPlot)
Runs the univariate dynamic analysis.
- Parameters
-
| fLongRun | TRUE: print long run |
| fLagan | TRUE: print lag analysis |
| fPolyRoots | TRUE: print roots of lag polynomials |
| fLagWeightsWrite | TRUE: print lag weights |
| iLagWeightsPlot | 1,3: plot normalized lag weights, 2,3: plot lag weights +/-2SE |
| fLagWeightsCumPlot | TRUE: plot cumulative normalized lag weights |
virtual PcGiveCore::Estimate()
Prepare and estimate the model.
- Returns
-
TRUE if successful
PcGiveCore::ExitNonLinear()
Exits nonlinear estimation (NLS, ML)
PcGiveCore::FillDynForecastData( mW, const asW, const cTpre, const iT1forc, const mSelgroup, const mVarsel, const mLagsel, const iReport=0)
PcGiveCore::FindSelection(const sVar, const iLag)
PcGiveCore::FindVarAmongI(const vY, const iIdxMissing=-1)
PcGiveCore::FindVarAmongLaggedX(const vY, const iIdxMissing=-1)
PcGiveCore::Forecast(const cTforc, const cHstep=0, iSEtype=1, const sbRobust=0, const cGap=0)
PcGiveCore::ForecastGraphics( iPlot=0, const iBarType=0, const dCrit=2.0, const cTpre=24, const viSel=<>)
Forecast graphics.
- Parameters
-
| iPlot | in, int: area index of first plot |
| iBarType | in, int: 0: bars, 1: bands, 2: fans |
| dCrit | in, double: no of standard errors for bars/bands/fans |
| cTpre | in, int: no of pre-forecast obs |
| viSel | in, <> or matrix with 0-1 to select variable for plotting/printing |
- Returns
-
iPlot plus no of plots created.
Must call Forecast first.
PcGiveCore::ForecastHedgehogGraphics( iPlot=0, const cTforc=8, const cHstep=0, const sbRobust=0, const asY={})
PcGiveCore::FurtherOutput(const sType)
Prints further output.
- Parameters
-
| sType | string with further output, one of: |
"correlation","covariance","forecasts","hcse","infcrit","r2seasonals","reducedform","outliers","eqnformat"
"equation","latex","nlsformat","cointmap",
- Returns
-
1 if the type has been recognized
PcGiveCore::GetAutometricsTerminals()
Gets the Autometrics terminals
- Returns
-
array with terminals
PcGiveCore::GetCointAlpha()
Get cointegration alpha.
- Returns
-
matrix[n][r]
PcGiveCore::GetCointAlphaRes()
Get cointegration restricted alpha.
- Returns
-
matrix[n][r]
PcGiveCore::GetCointBeta()
Get cointegration beta.
- Returns
-
matrix[n1][r]
PcGiveCore::GetCointBetaRes()
Get cointegration restricted beta.
- Returns
-
matrix[n1][r]
PcGiveCore::GetCointEval()
Get cointegration eigenvalues.
PcGiveCore::GetCointRank()
Get cointegration rank.
PcGiveCore::GetCointRes()
Get restricted cointegration results.
- Returns
-
array[9]
{ alpha_res, beta_res, pi_res, SE(alpha_res), SE(beta_res), SE(pi_res), isIdentified, #restrictions, loglik}
PcGiveCore::GetDynForecastData(const cTforc, const mxLag=0)
PcGiveCore::GetEquations()
virtual PcGiveCore::GetGroupLabels()
Defines the Y_VAR,X_VAR,... constants as array of strings.
- Returns
-
array of strings.
virtual PcGiveCore::GetMethodLabel()
Gets the text label of the estimation method.
- Returns
-
string, the text label of the method
virtual PcGiveCore::GetMethodLabels()
Defines the M_NONE,M_OLS,... constants as array of strings.
- Returns
-
array of strings.
PcGiveCore::GetModelClass()
Gets the model class.
PcGiveCore::GetModelInLevels(const asY, mY, mW, const cTpre, const cTforc, const iSEtype)
PcGiveCore::GetModelJacobian()
Returns the SEM Jacobian matrix (inv(B)**[Pi':I])u.
- Returns
-
matrix[k][q]: Jacobian matrix.
virtual PcGiveCore::GetModelLabel()
Gets the label of the model.
- Returns
-
string the label of the model.
virtual PcGiveCore::GetOxCode()
Gets the Ox code for the estimated model.
virtual PcGiveCore::GetPackageName()
Returns package name.
- Returns
-
string, package name
virtual PcGiveCore::GetPackageVersion()
Returns package version.
- Returns
-
string, package version
virtual PcGiveCore::GetParNames()
Get the names of all parameters.
- Returns
-
array[q] with names of all parameters.
PcGiveCore::GetPi()
Returns matrix of URF/RRF coefficients (equations in rows).
- Returns
-
matrix[n][k]: matrix of URF/RRF coefficients for n equations, m_mPi.
virtual PcGiveCore::GetResVar()
PcGiveCore::GetResiduals()
PcGiveCore::GetRobustSEType()
Get robust standard error type
- Returns
-
0: Default SE, 1: HCSE, 2: HACSE
PcGiveCore::GetStatus(const aiConst, const aiTrend)
Gets status of Constant and Trend for Cointegration analysis.
- Parameters
-
| aiConst | in: address, out: location of "Constant" in m_mVarsel |
| aiTrend | in: address, out: location of "Trend" in m_mVarsel |
- Returns
-
0: no constant; 1: restricted constant; 2: unrestricted constant;
4: unrestricted trend; 3: restricted trend
PcGiveCore::GetVarNames(const aasY, const aasW)
Returns variable names.
- Parameters
-
| aasY | in: address, out:array with Y variable names |
| aasW | in: address, out:array with W (lagged Y, X, U) variable names |
- Returns
-
array[3] { number of Y, number of lagged Y, som of no Y and W }
PcGiveCore::GetVarPi()
Returns matrix with variances of URF/RRF coefficients (equations in rows).
- Returns
-
matrix[n][k]: matrix of variances of URF/RRF coefficients for n equations.
PcGiveCore::GetVarTheta()
PcGiveCore::GetW()
Returns the W matrix.
- Returns
-
the k matrix W, m_mW.
PcGiveCore::GetWtWinv()
Returns the inv(W'W) matrix.
- Returns
-
the k x k matrix m_mWtWinv.
PcGiveCore::GetY()
Returns the Y matrix.
- Returns
-
the Txn matrix Y, m_mY.
virtual PcGiveCore::GetcDfLoss()
Returns degrees of freedom lost (number of free parameters).
- Returns
-
degrees of freedom lost (for tailt, tailchi etc.)
PcGiveCore::Grow(const cTadd)
PcGiveCore::HeteroTest(const iStand, const bCross)
Vector Heteroscedasticity test.
- Parameters
-
| iStand | int, TRUE: standardize data |
| bCross | int, TRUE: include cross products |
- Returns
-
matrix[2][2]: F-test ~ chi^2-test | F-pval ~ chi^2-pval
PcGiveCore::IndexTest(const iMode)
Index test for nonlinearity.
- Parameters
-
| iMode | int, 2: Index2 test, 3: Index23 test, 4: Index test |
- Returns
-
matrix[2][2]: F-test ~ chi^2-test | F-pval ~ chi^2-pval
(0 if not available)
PcGiveCore::InformationCriteria()
Gets information criteria.
- Returns
-
matrix[4][1]: AIC ~ SC ~ HQ ~ FPE
PcGiveCore::InitNonLinear()
Initializes nonlinear estimation (NLS, ML)
- Returns
-
string with error message or TRUE for success.
PcGiveCore::InstabTests(const fCompact)
Gets the instability test.
PcGiveCore::IsUnivariate()
Is univariate?
- Returns
-
FALSE
static PcGiveCore::MSIS(const vForcLo, const vForcHi, const vActual, const vYForScale, const iFreq, const dAlpha)
PcGiveCore::NormalityTest()
Vector (non-)normality test.
- Returns
-
matrix[2][1]: chi^2-test | chi^2-pval
PcGiveCore::OmittedTest(const mZ, const asZ)
Omitted variables test.
- Parameters
-
| mZ[T][k1] | omitted variables |
| asZ | array of names of omitted variables |
- Returns
-
matrix[2][2]: F-test ~ chi^2-test | F-pval ~ chi^2-pval
virtual PcGiveCore::Output()
Prints estimation output.
PcGiveCore::OutputBatchCointMap()
Prints Batch code to map cointegration model to I(0).
PcGiveCore::OutputCoint(const iCoint)
Prints I(2) cointegration test or estimation output.
- Parameters
-
| iCoint | 1: test, 2: estimation |
PcGiveCore::OutputCointI2()
Prints I(2) cointegration test output.
PcGiveCore::OutputCountMeanVar(const cPar, const mY, sY)
Prints sample/model size and mean(Y), se(Y).
- Parameters
-
| cPar | number of parameters |
| mY[cT][1] | Y variable |
| sY | string: name of Y variable (max length 9) |
PcGiveCore::OutputEqn(const sEqn, const asPar, const vPar, const vStdErr, const vStdErrRobust, const sStdErrRobust, const cTdf, const cY, const cU, const fDoPartRsq)
Prints an equation of estimation output.
- Parameters
-
| sEqn | string, dependent variable. |
| asPar | array of strings, coefficient labels. |
| vPar | coefficient vector. |
| vStdErr | coefficient standard error vector. |
| vStdErrRobust | <> or robust coefficient standard error vector. |
| sStdErrRobust | string, label for robust coefficient standard error type. |
| cTdf | int, degrees of freedom for t-test. |
| cYlab | int, first cYlab get Y label. |
| cUlab | int, last cUlab get U label. |
| cYlab | TRUE: print partial R^2 |
PcGiveCore::OutputEqnStats(const dSigma, const dRss)
Prints equation stats (sigma, R^2).
PcGiveCore::OutputFormatted(const iType, const cSigPar, const cSigSE)
Prints formatted estimation results.
- Parameters
-
| iType | 0: equation format, 1: latex 2: NLS |
PcGiveCore::OutputHdr(const sType)
Prints header of estimation output.
- Parameters
-
PcGiveCore::OutputLogLik(const fSys, const fCoint)
Prints the loglikelihood and related statistics.
PcGiveCore::OutputModel()
Prints the simultaneous model.
PcGiveCore::OutputOutliers( dSE)
Prints large residuals.
- Parameters
-
| dSE | double cutoff for standardized residuals |
PcGiveCore::OutputRF()
Prints the reduced form.
PcGiveCore::OutputRest(const asY, const asw)
Prints more statistics.
PcGiveCore::OutputSingleEqnStats(const mY, const mRes, const dSigma, const dRss, const fSimple)
Prints single equation statistics.
- Parameters
-
| mY[cT][1] | Y variable |
| mRes[cT][1] | residuals |
| dSigma | double: residual sigma |
| dRss | double: RSS |
| iSimple | 0: current format, 1: old format (with DW) |
PcGiveCore::OutputSystem()
Prints the system.
PcGiveCore::PcGiveCore()
Constructor.
PcGiveCore::Portmanteau(const iLag)
Portmanteau test.
- Parameters
-
- Returns
-
matrix[2][1]: test | pval
PcGiveCore::Print()
Use Output
PcGiveCore::PrintCorrelations()
Prints correlation matrix of variables in model.
PcGiveCore::PrintCovar()
Prints Covariance matrix of estimated parameters.
PcGiveCore::PrintForecasts(const viSel=<>)
Prints the forecasts after making them using Forecast
- Parameters
-
| viSel | vector of 0,1 for equation selection (or default <> to select all) |
PcGiveCore::PrintStaticForecasts()
Prints the static forecasts.
PcGiveCore::ProcessPendingEquations()
PcGiveCore::RSquared()
R^2 statistic.
- Returns
-
R^2 | Radj^2.
PcGiveCore::Reset()
Reset the object.
PcGiveCore::ResetTest( ...)
Reset test.
- Parameters
-
| mxPower | int, (optional, default is 2) power of RESET |
- Returns
-
matrix[2][2]: F-test ~ chi^2-test | F-pval ~ chi^2-pval
PcGiveCore::RobustSE()
Computes and prints robust standard errors.
- Returns
-
array[5]
{ vP, SE, HACSE, HCSE, JHCSE }
PcGiveCore::SeasonalRsq()
Prints R^2 relative to difference and seasonals and relative to intercept adjustment.
PcGiveCore::SetCFIMLCode(const sCode)
Set CFIML code.
- Parameters
-
| sCode | string, text with code |
PcGiveCore::SetCointRank(const cRank)
Set cointegration rank.
PcGiveCore::SetCointRestrict(const sGenRes)
Set general cointegration restrictions.
- Parameters
-
| sGenRes | string, text with general restrictions (sets m_iCointResType = 1), if |
not a string: removes restrictions.
PcGiveCore::SetCointRestrictMat(const fIsCommonBeta, const mA, const mH)
Set cointegration restrictions.
- Parameters
-
| fIsCommonBeta | TRUE: common restrictions on beta |
| mA | matrix, restrictions on alpha |
| mH | matrix, restrictions on beta |
PcGiveCore::SetDerivedForecasts(const sForcDerived)
Sets the code for derived forecasts.
- Parameters
-
| sForcDerived | string, code |
PcGiveCore::SetEquation(const sEquation, const aModel)
PcGiveCore::SetModelClass(const iModelClass)
Sets the model class.
- Parameters
-
| iModelClass | int or string, one of "static","single","nonlinear" or "non-linear","system" |
PcGiveCore::SetNonlinearCode(const sCode)
Set nonlinear code.
- Parameters
-
| sCode | string, text with code |
PcGiveCore::SetPendingEquations(const asEquations)
PcGiveCore::SetPrintRf( fPrintUrf)
Toggles reduced form printing.
- Parameters
-
PcGiveCore::SetRobustSEType(const iSet)
Set robust standard error type
- Parameters
-
| iSet | 0: Default SE, 1: HCSE, 2: HACSE |
PcGiveCore::SetTestDefaults()
Set default parameters for misspecification tests.
PcGiveCore::StaticForecasts(const iPrint=1)
Computes and print the static forecasts of a dynamic model.
- Parameters
-
| iPrint | 1: tests, 2: tests and forecasts |
- Returns
-
array[4] {forecasts, actuals, std. errors (maybe <>), individual tests (maybe <>)};
PcGiveCore::StaticPredictions(const iPrint=1)
PcGiveCore::Store(const sType, sRename="", iPrint=0)
Stores results in the underlying database.
- Parameters
-
| sType | string with further output, one of:<br> |
"residuals",
"structres",
"forecasts",
"forecast_se",
"robust",
"simulations",
"fitted",
"RecRes",
"RecSI",
"RecRSS",
"RecESE",
"RecInn",
"RecLL",
"RecEv"
PcGiveCore::TestByEqn(const iRcOrder, const iAcLag0, const iAcLag1, const iArchOrder, const fNormal, const fHetero, const fHeteroX, const fReset, const fReset23, const fIndex)
Prints single equation misspecification tests.
PcGiveCore::TestRestrictions( mR, ...)
Tests a linear restriction, see 'Modelbase::TestRestrictions'.
PcGiveCore::TestSummary()
Prints misspecification test summary.
PcGiveCore::UndoDifference(const iDiff, const iSeasdiff, const iFreq, const iEqn, const idxYdif, const vYlev, const idxYlev, const idxD1y, const idxDsy, mVarsel, mSelgroup, mLagsel, mY, mW, mPi, mVarPi, mJac, const cTpre, const cTforc)
PcGiveCore::UnitRootTest()
PcGive unit root test.
- Returns
-
matrix[2][1]: test | pseudo-pval (0: significant at 5%, 1: insignificant).
PcGiveCore::accumulateEGE(const vP)
PcGiveCore::do1SLS( mA, const cY, const mX)
PcGiveCore::doIdentities(const fSummary)
PcGiveCore::fCheckRank(const fPrint)
PcGiveCore::fFimlLogLik(const vP, const adFunc, const avScore, const amHessian)
PcGiveCore::fFimlLogLikEx(const vP, const adFunc, const avScore, const amHessian, mA, const mXtX, const cT)
PcGiveCore::getEqnMap(const iY, const cDropU=0)
PcGiveCore::getModelMap(const cDropU=0)
PcGiveCore::initmodelEGE(const iInitMethod)
PcGiveCore::setModelIndices()
PcGiveCore::solveXSLS( mA, const mPi, const mSigma, const mXtX, const cT)