Learn R Programming

desk (version 1.1.2)

pc.test: Prognostic Chow Test on Structural Break

Description

Performs prognostic Chow test on structural break. The object of test results returned by this command can be plotted using the plot() function.

Usage

pc.test(
  mod,
  data = list(),
  split,
  sig.level = 0.05,
  details = FALSE,
  hyp = TRUE
)

Value

A list object including:

hypthe null-hypothesis to be tested.
resultsdata frame of test results.
SSR1sum of squared residuals of phase I.
SSRsum of squared residuals of phase I + II.
periods1number of periods in Phase I.
periods.totaltotal number of periods.
nulldistthe null distribution in the test.

Arguments

mod

the regular model (estimated or formula) without dummy variables.

data

if mod is a formula then the corresponding data frame has to be specified.

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: sig.level = 0.05.

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.

References

Chow, G.C. (1960): Tests of Equality Between Sets of Coefficients in Two Linear Regressions. Econometrica 28, 591-605.

Examples

Run this code
## 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)

Run the code above in your browser using DataLab