Skip to content
Prev 13009 / 15274 Next

Optimization of ARFIMA in rugarch - Quick question and context

Alexios,
Thank you for your concise answer. I had seen the function nyblom available for use with the uCARCHfit objects. It does not seem to work with ARFIMAfit objects in the same way the identified methods do (please see below for a sample).  However, I have not yet found the key to running nyblomTest on the ARFIMAfit object that results from running the following code snippit:

## optimization methods = "nlminb", "solnp", "gosolnp", "nloptr"

solv <- c("nlminb","solnp","gosolnp","nloptr") 
auto_nloptr <- list()
for (i in 1:z)
{
auto_nlminb[[i]] <- try(autoarfima(Z.std[,i], ar.max = 5, ma.max = 5, criterion = "BIC",
method = "full", arfima = FALSE, include.mean = NULL,
distribution.model = "sstd", solver = solv[1], return.all = FALSE),
silent = TRUE)
}

This process eventually provides ARFIMAfit objects as list members for the sectors for which an optimized solution was found. I ran it solver by solver, creating 4 lists of objects. These solver-specific lists were then made members of a list object which I have been querying, as indicated in the following: 

AIC.array[j,k] <- infocriteria(varMod[[k]][[j]]$fit)[1]

Where j is the sector, k is the solver and varMod is the list of lists of ARFIMAFit objects mentioned earlier.

Details:
R 3.1.2, platform = i386-w64-mingw32/i386, OS = Win 7 SP1
Assume rugarch and zoo are loaded. Z.std is a zoo object of subsets of the monthly return series identified in the previous message with start and end points that are uniform across sectors and with no NA entries. They have been standardized to have 0 mean and st. dev = 1. The data are unweighted as they are submitted to the autoarfima function. The variable z represents the number of sectors, equivalent to the number of series in Z.std.

I hope that is enough detail to help you help me with this. 
I look forward to your response.
Regards,
Nick

-----Original Message-----
From: alexios ghalanos [mailto:alexios at 4dscape.com] 
Sent: Tuesday, December 02, 2014 5:27 PM
To: Nicholas Manganaro; r-sig-finance at r-project.org
Subject: Re: [R-SIG-Finance] Optimization of ARFIMA in rugarch - Quick question and context

The returned list from autoarfima has 2 slots, 'fit' and 'rank.matrix'. 
The former is of class ARFIMAfit, and though not exported to work with it, you can use

 >rugarch:::.nyblomTest(fit).

If you provide some additional details (i.e. reproducible code and which data you are using...monthly/daily,value-weighted or equally weighted) then we might be able to provide some additional help.

Regards,

Alexios
On 02/12/2014 21:57, Nicholas Manganaro wrote: