Learn R Programming

arfima (version 1.8-1)

removeMode: Removes a mode from an arfima fit.

Description

This function is useful if one suspects a mode is spurious and does not want to call the weed function.

Usage

removeMode(object, num)

Value

The original object with the mode removed.

Arguments

object

An object of class "arfima".

num

The number of the mode as in the printed value of the object.

Author

JQ (Justin) Veenstra

See Also

arfima

Examples

Run this code
# \donttest{
set.seed(8765)
sim <- arfima.sim(1000, model = list(phi = 0.4, theta = 0.9, dfrac = 0.4))
fit <- arfima(sim, order = c(1, 0, 1), back=TRUE)
fit
fit <- removeMode(fit, 3)
fit
# }

Run the code above in your browser using DataLab