Learn R Programming

dynia (version 0.2)

GetIntMod: Find the intervention model with necessary covariates

Description

Fit the intervention model with some covariates

Usage

GetIntMod(delta, z, T, xint = NA, itype = c("step", "pulse"), ...)

Arguments

delta
The optimization process will be incorporated if the specific delta is not provided.
z
The series which we intend to fit the intervention model
T
T denotes the start of the intervention in the model
xint
xint denotes for the possible covariates included in the model
itype
itype includes the type of the intervention:"step" and "pulse" intervention
...
Any supported argments for arima function could be put here.

Value

Intervention Model is provided

Examples

Run this code
GetIntMod(delta=1.033,z=casualties[,1],T=70,xint=scale(casualties[,2]),itype="s",
 order=c(1,0,0),seasonal=list(order=c(0,0,1),period=12))

Run the code above in your browser using DataLab