Displaying 20 results from an estimated 1000 matches similar to: "GARCH (1,1) negative volatility???"
2010 Aug 15
2
fGarch: how to use garchFit() in loop?
Dear expeRts,
How can I specify the order p,q of a GARCH(p,q) model within a loop? Here's a minimal example showing that an "Formula and data units do not match"-error appears:
library(fGarch)
spec <- garchSpec(model = list(alpha = 0.1, beta = c(0.4, 0.4)))
data <- garchSim(spec, n = 100)
x <- list()
for(q in 1:3){
print(q)
x[q] <-
2009 Mar 02
1
(no subject)
Greetings,
I am using fGarch package to estimate and simulate GARCH models. What I would like to do is to perform Monte Carlo simulation. Unfortunately I cannot figure how to modify the code to achieve this. I use the following code to run a single simulation:
spec=garchSpec(model=list(ar= 0.440270860, omega=0.000374365,alpha=0.475446583 , mu=0, beta=0))
sim<-garchSim(spec,
2009 Mar 03
0
Monte carlo simulation in fGARCH
I use fGarch package to estimate AR(1)-ARCH(1) process for a vector of returns. Then, using the estimated parameters I want to simulate 10 000 sample paths where each path has the same length as the vector of returns. So the first line of the code is: spec=garchSpec(model=list(ar= 0.440270860, omega=0.000374365,alpha=0.475446583 , mu=0, beta=0))----
The only way I can think of generating 10 000
2008 Apr 01
1
garch prediction
Hello
I want to predict the future values of time series with Garch
When I specified my model like this:
library(fGarch)
ret <- diff(log(x))*100
fit = garchFit(~arma(1,0,0)+garch(1, 1), data =ret)
predict(fit, n.ahead = 10)
meanForecast meanError standardDeviation
1 0.01371299 0.03086350 0.03305819
2 0.01211893 0.03094519 0.03350248
2011 Sep 28
1
fGarch - Fitting and APARCH-Modell with fixed delta
Hi there,
I'm trying to fit a GJR-GARCH Model using fGarch. I wanted to try that by
fitting an APARCH model with a fixed delta of 2 and a non-fixed gamma. So I
was simply trying to use:
spec <- garchFit(~aparch(1,1),data=garchSim(),delta=2)
coef(spec)
And sometimes, it's working like a charm and delta is indeed exactly 2 in
the resulting coefficient vector.
Frequently, though, the
2006 May 08
3
GARCH SIMULATION
Hi All,
I,m trying to do a GARCH simulation in R 2.3.0 release
in Windows XP. I've seen garchsim function but that is
for garch (1,1) and ?garch gives an example for ARCH
simulation. Can anyone help me how can i extend the
help shown in ?garch to GARCH simulation? Please help
me in this regard.
Thanks,
Sumanta Basak.
2013 Feb 17
0
forecast ARMA(1,1)/GARCH(1,1) using fGarch library
Hi, i am working in the forecast of the daily price crude .
The last prices of this data are the following:
100.60 101.47 100.20 100.06 98.68 101.28 101.05 102.13 101.70 98.27
101.00 100.50 100.03 102.23 102.68 103.32 102.67 102.23 102.14 101.25
101.11 99.90 98.53 96.76 96.12 96.54 96.30 95.92 95.92 93.45
93.71 96.42 93.99 93.76 95.24 95.63 95.95 95.83 95.65
2010 Feb 03
3
diagnostic plots
Dear all,
does anybody ever encountered the problem with diagnostic plots?
x<-rnorm(100)
y<-rnorm(100)
plot(lm(x~y))
It gives the following message "Waiting to confirm page change..." and
nothing happens.
Thanks a lot!
[[alternative HTML version deleted]]
2013 Apr 08
0
Maximum likelihood estimation of ARMA(1,1)-GARCH(1,1)
Hello
Following some standard textbooks on ARMA(1,1)-GARCH(1,1) (e.g. Ruey
Tsay's Analysis of Financial Time Series), I try to write an R program
to estimate the key parameters of an ARMA(1,1)-GARCH(1,1) model for
Intel's stock returns. For some random reason, I cannot decipher what
is wrong with my R program. The R package fGarch already gives me the
answer, but my customized function
2011 Nov 20
1
alpha_1 + beta_1 >1 in GARCH(1,1)
Hi,
as i suppose to know in a stationary GARCH(1,1) model the sum of alpha and
beta has to be smaller than 1.
But if i use the garchfit() function from the package fGarch for my
timeseries the sum is bigger than 1.
The adf.test tells me a p-value smaller than 0.01 instead.
What does this mean for me?
Can i trust in the coefficients in this case?
mfg user84
--
View this message in context:
2010 Jan 13
4
<= returns wrong result? Why
Dear all,
Does anybody know the probable reason why <= gives false when it should give
true?
These two variables are of the same type, and everything works in the cycle
but then it stops when they are equal.
this is the output result
> Rk[47] <= RB[21]
[1] FALSE
> Rk[47]
[1] 0.002842007
> RB[21]
[1] 0.002842007
Thanks a lot.
[[alternative HTML version deleted]]
2010 Jul 09
3
strange floor rounding
Dear all,
might seem and easy question but I cannot figure it out.
floor(100*(.58))
[1] 57
where is the trick here? And how can I end up with the right answer?
Thanks a lot everybody for your help.
Trafim
[[alternative HTML version deleted]]
2009 Feb 14
0
How to fit GARCH(1,1) with targeted unconditional variance?
Hello,
I have a univariate data set, and the unconditional variance is 1. I would
like to fit a GARCH(1,1) model to the data set with a constraint: \omega
(the constant parameter in GARCH(1,1)) is equal to 1-\alpha-\beta. So the
unconditional variance can be controled to be \omega /(1-\alpha-\beta) = 1.
I was using garchFit (fGARCH package) but did not find the way to control.
Any help?
2006 Feb 16
2
function for prediting garch
hello,
In my time series data, I was able to successfully fit
its ARIMA model (Box-Jenkins) and its GARCH model and
estimate their parameters. I was also able to forecast
future values of the time series based on my fitted
ARIMA model using the predict() function call.
However, I'm not sure what is the correct function
command to call in order to forecast future values of
my time series
2010 Jul 14
4
reverse string
Dear all,
Are there any functions in R to reverse the order of the string.
smth like reverse("abc") to get "cba"?
Thanks a lot.
[[alternative HTML version deleted]]
2010 Jan 14
3
plot type any symbols?
Dear all,
I have a question is there a possibility to plot points with different
symbols like stars, crosses?
I looked at different types for plot command and didn't find anything like
that.
Thanks a lot.
[[alternative HTML version deleted]]
2005 Apr 11
1
TSeries GARCH Estimates accuracy
Hi,
I am trying to fit a GARCH(1,1) model to a financial timeseries using the 'garch' function in the tseries package. However the parameter estimates obtained sometimes match with those obtained using SAS or S-Plus (Finmetrics) and sometimes show a completely different result. I understand that this could be due to the way optimization of MLEs are done, however, I would appreciate any
2011 May 12
2
DCC-GARCH model and AR(1)-GARCH(1,1) regression model
Hello,
I have a rather complex problem... I will have to explain everything in
detail because I cannot solve it by myself...i just ran out of ideas. So
here is what I want to do:
I take quotes of two indices - S&P500 and DJ. And my first aim is to
estimate coefficients of the DCC-GARCH model for them. This is how I do it:
library(tseries)
p1 = get.hist.quote(instrument =
2008 Aug 18
1
another GARCH problem
Hallo,
i want to fit a GARCH model with a extern regressor (without arma
components), so i found the following function in package fGarch. I tryed
out a lot of things but usually I get this Error.
> garchFit(formula=y~x, formula.var=~garch(1,1),data=w)
Error in .garchFit(formula.mean, formula.var, series = x, init.rec, delta,
:
Algorithm only supported for mci Recursion
I think i use the
2010 Jan 07
2
Graph titles from massive
Dear all,
I would like to ask you if there is a possibility in R to give the names to
graphs which are not const.
For example,
How to name each plot, or to add notes like a=x[i], b=y[i] in this cycle
x<-c(1,2,3,4,5,6)
y<-c(7,8,9,10,11,12)
par(mfrow=c(2,3))
for (i in 1:6){
plot(x,y)
}
Thank you for your time and help!
[[alternative HTML version deleted]]