Displaying 20 results from an estimated 400 matches similar to: "testing an ARFIMA model for structural breaks with unknown breakpoint"
2006 Feb 15
1
S3 generics without NS and cleanEx()
Good morning,
we recently observed a problem with importing S3 generics from a foreign
package (without namespace), defining a S3 method in a package _with_
namespace and the `cleanEx()' function which is automatically generated
and executed before examples are run by R CMD check.
To be more precise. Package `strucchange' defines a S3 generic
sctest <- function(x, ...)
2009 May 17
2
Chow test(1960)/Structural change test
Hi,
A question on something which normally should be easy !
I perform a linear regression using lm function:
> reg1 <- lm (a b+c+d, data = database1)
Then I try to perform the Chow (1960) test (structural change test) on my regression. I know the breakpoint date. I try the following code like it is described in the “Examples” section of the “strucchange” package :
> sctest(reg1,
2012 May 29
1
strucchange Fstats() example
Dear all,
I'm trying to understand how the strucchange package is working and I have been looking at the examples given for the Fstats() function.
The first example (Nile), shows one peak in the F-stats and one breakpoint is estimated, that can be plotted using the following code
## Nile data with one breakpoint: the annual flows drop in 1898
## because the first Ashwan dam was built
2011 Dec 30
3
Break Points
Respected Sir
I tried the strucchange
My data is attached. However I tried the attached commands (last
save.txt) to perform Bai Perron 2003... I t worked well but in the end
it is giving warning that overlapping confidence interval... I am not
sure how to proceed... Please Help Me
Thanking You
Ayanendu Sanyal
--
Please have a look at our new mission and contribute into it (cut and
paste the
2023 May 31
1
error in arfima...
dear members,
I am using arfima() from forecast package to model a time series. The following is the code:
> LYGH[[202]]
[1] 45.40 3.25 6.50 2.15
> arfima(LYGH[[202]])
Error in .fdcov(x, fdf$d, h, nar = nar, nma = nma, hess = hess, fdf.work = fdf$w) :
NA/NaN/Inf in foreign function call (arg 5)
I tried viewing .fdcov() with the following code:
2010 Jun 04
2
Help on ARFIMA modeling
Please I want to perform full data analysis using ARFIMA model but
I dont know the right package that can perform all the necessary
test on the time series data.
ERIC AIDOO
[[alternative HTML version deleted]]
2023 Jun 01
1
error in arfima...
>>>>> akshay kulkarni
>>>>> on Wed, 31 May 2023 20:55:33 +0000 writes:
> dear members,
> I am using arfima() from forecast package to model a time
> series. The following is the code:
>> LYGH[[202]]
> [1] 45.40 3.25 6.50 2.15
>> arfima(LYGH[[202]])
> Error in .fdcov(x, fdf$d, h, nar = nar, nma = nma,
2011 Oct 09
1
strucchange Nyblom-Hansen Test?
I want to apply Nyblom-Hansen test with the strucchange package, but I don't
know how is the correct way and what is the difference between the following
two approaches (leeding to different results):
data("longley")
# 1. Approach:
sctest(Employed ~ Year + GNP.deflator + GNP + Armed.Forces, data = longley,
type = "Nyblom-Hansen")
#results in:
# Score-based CUSUM
2011 Aug 01
1
ivreg and structural change
Hello,
I am looking for some help with this question: how could I test structural
breaks in a instrumental variables´s model?
For example, I was trying to do something with my model with three time
series.
tax_ivreg <- ivreg(l_y ~ l_x2 + l_x1+ dl_y | lag(l_x2, -1)+lag(l_x2, -2)+
lag(l_x1, -1)+lag(l_x1, -2)+lag(l_y, -1)+lag(l_y, -2), data=tax1)
summary(tax_ivreg)
## after estimating it,
2011 Sep 21
1
Strucchange gbreakpoints
Hi,
I am a new user to R.
I am using strucchange to generate breakpoints:
--------------------------------------------------------------------------------------
> res <- gbreakpoints(GDP.new ~ 1,data=a,h=2,breaks=5)
> print(res)
Optimal 6-segment partition for `lm' fit:
Call:
gbreakpoints(formula = GDP.new ~ 1, data = a, h = 2, breaks = 5)
Breakpoints at observation number:
2008 May 01
1
Forecasting observations in ARFIMA
I would like to compute the next 15 observations for
an ARFIMA(2,1,0) model along with confidence
intervals. Can someone provide code?
Many thanks.
Jill
____________________________________________________________________________________
[[elided Yahoo spam]]
2023 Jun 05
1
error in arfima...
Dear Martin,
Sad that the bug is beyond your ken...
Fortunately, the error happens only rarely...The length of LYGH was 719 and there were only two such errors..I will just replace them with NA and make do.
By the by, what if I send LYGH as an attachment to your actual mail ( not the r-help mail)? Will it help? Can you then pinpoint the cause?
Or should I raise a bug
2011 Sep 14
1
Strucchange generating breakpoints
Hi,
I am new to R. I am using strucchange to get the breakpoints in time series
dataset. So the problem I am facing is: I want to link the result generated
by the breakpoints to further analysis (for eg. generating volatility for
each group). The result is in following form:
---------------------------------------
> res <- gbreakpoints(GDP.new ~ 1,data=a,h=2,breaks=6)
> res
2007 Sep 25
1
fSeries Garch and Arfima Ox interface
Hello all,
This is a request for help from somebody who has the Ox interfaces working in R.
I am trying to get the Ox interfaces working for Arfima and Garch modelling. However, I am having several problems:
1. The link to download G at rch_v40 does not work. Does anybody have a copy to email to me please?
2. Various guides offer different instructions for installing Ox in the correct place
2011 Jul 29
2
'breackpoints' (package 'strucchange'): 2 blocking error messages when using for multiple regression model testing
Good morning to all,
I am encountering a blocking issue when using the function 'breackpoints'
from package 'strucchange'.
*Context:*
I use a data frame, 248 observations of 5 variables, no NA.
I compute a linear model, as y~x1+...+x4
x4 is a dummy variable (0 or 1).
I want to check this model for structural changes.
*Process & issues:*
*First, I used function Fstats.* It
2009 Jan 14
2
Kaplan-Meier Plot
dear all,
I want to plot a kaplan Meier plot with the following functions, but I fail
to produce the plot I want:
library(survival)
tim <- (1:50)/6
ind <- runif(50)
ind[ind > 0.5] <- 1; ind[ind < 0.5] <- 0;
MS <- runif(50)
pred <- vector()
pred[MS < 0.3] <- 0; pred[MS >= 0.3] <- 1
df <- as.data.frame(cbind(MS, tim, pred, ind))
names(df) <-
2011 Oct 04
0
how to make ARFIMA forecast by using r?
please help..
I have estimate the value of parameter for AR,MA and fractional d.but I have
problem on having the right command for forecasting ARFIMA model.please
help......
--
View this message in context: http://r.789695.n4.nabble.com/how-to-make-ARFIMA-forecast-by-using-r-tp3869928p3869928.html
Sent from the R help mailing list archive at Nabble.com.
2009 Jan 22
0
Forecasting by using ARFIMA(0, d, 0) models in R
Hello. I'm trying to make k-step-ahead forecasts using ARFIMA(0, d, 0)
models by taking the first T+k-1 coefficients in the binomial expansion of
(1-B)^d, regarding (1-B)^d x(T+k) as an AR(T+k-1) on x(T+k), where x(T)
is the series value at time T and k = 1, 2, 3,
. That is, I forecast the
series k values forward using the first T+k-1 coefficients in the binomial
expansion of (1-B)^d as
2023 May 16
1
mclapply enters into an infinite loop....
Dear members,
I am using arfima in an mclapply construction (from the parallel package):
Browse[2]> LYG <- mclapply(LYGH, FUN = arfima, mc.cores = detectCores())
^C
Browse[2]> LYG <- mclapply(LYGH[1:10], FUN = arfima, mc.cores = detectCores())
^C
Browse[2]> LYG <- mclapply(LYGH[1:2], FUN = arfima, mc.cores = detectCores())
^C
You can see that I am
2011 Nov 20
1
Cox proportional hazards confidence intervals
I am calculating cox propotional hazards models with the coxph
function from the survival package. My data relates to failure of
various types of endovascular interventions. I can successfully
obtain the LR, Wald, and Score test p-values from the coxph.object, as
well as the hazard ratio as follows:
formula.obj = Surv(days, status) ~ type
coxph.model = coxph(formula.obj, df)
fit =