View source: R/tsp.break.coef.R
| tsp.break.coef | R Documentation |
Break points coefficients and t values
tsp.break.coef(
data,
breaks = NULL,
model = c("trend", "const"),
log = FALSE,
plot = TRUE,
mfcol = NULL,
...
)
data |
an object of class ts or as.ts() supported |
breaks |
numbers of maximum breaks to found |
model |
type of model to be used in breakpoints, trend (default) or const (for constant only) |
log |
log transformation used in data for log percent change |
mfcol |
vector of length 2 to define plot matrix |
... |
arguments passed to breakpoints |
Create a linear model to determinate structural breaks
tibble object
library(vars)
data("Canada")
tsp.break.coef(Canada)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.