pc.test | R Documentation |
Performs prognostic Chow test on structural break. The object of test results returned by this command can be plotted using the plot()
function.
pc.test(
mod,
data = list(),
split,
sig.level = 0.05,
details = FALSE,
hyp = TRUE
)
mod |
the regular model (estimated or formula) without dummy variables. |
data |
if |
split |
number of periods in phase I (last period before suspected break). Phase II is the total of remaining periods. |
sig.level |
significance level. Default value: |
details |
logical value indicating whether specific details (null distribution, number of periods, and SSRs) of the test should be displayed. |
hyp |
logical value indicating whether the hypotheses should be displayed. |
A list object including:
hyp | the null-hypothesis to be tested. |
results | data frame of test results. |
SSR1 | sum of squared residuals of phase I. |
SSR | sum of squared residuals of phase I + II. |
periods1 | number of periods in Phase I. |
periods.total | total number of periods. |
nulldist | the null distribution in the test. |
Chow, G.C. (1960): Tests of Equality Between Sets of Coefficients in Two Linear Regressions. Econometrica 28, 591-605.
## Estimate model
unemp.est <- ols(unempl ~ gdp, data = data.unempl[1:14,])
## Test for immediate structural break after t = 13
X <- pc.test(unemp.est, split = 13, details = TRUE)
X
plot(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.