removeMode: Removes a mode from an 'arfima' fit.

View source: R/utilityfcns.R

removeModeR Documentation

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)

Arguments

object

An object of class "arfima".

num

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

Value

The original object with the mode removed.

Author(s)

JQ (Justin) Veenstra

See Also

arfima

Examples


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


arfima documentation built on Aug. 19, 2022, 5:14 p.m.