similar to: R strucchange question: recursive-based CUSUM

Displaying 20 results from an estimated 1000 matches similar to: "R strucchange question: recursive-based CUSUM"

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
2004 Nov 05
1
Error message from vignette strucchange-intro example
Hello, I am just studying the following example from vignette: strucchange-intro, contineousely ending up in an error. This is the given code: 1. library(strucchange) 2. data(USIncExp) 3. if (!"package:stats" %in% search()) library(ts) 4. USIncExp2 <- window(USIncExp, start = c(1985, 12)) A.Modelling: coint.res <- residuals(lm(expenditure ~ income, data = USIncExp2))
2010 Sep 27
1
One-sided CUSUM / MOSUM Tests?
Dear R-help list members, I have the following question concerning the strucchange()-package: is it possible to get the boundaries for one-sided (upper / lower) CUSUM and MOSUM tests? Thank you in advance. Julia
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,
2005 Jan 11
1
CUSUM SQUARED structural breaks approach?
Dear all, Does anyone know where there is R or S code for the CUSUM SQUARED structural breaks approach? (Brown, Durban and Evans, 1975 - used in Pesaran and Timmerman, 2002) The problem is that the breaks package only appears to offer the standard 'unsquared' CUSUM, even though it appears most think it is inferior to the squared version. It might appear to be a relatively simple
2004 Apr 14
7
trend turning points
Hi, does anybody know of a nice test to detect trend turning points in time series? Possibly with reference? Thanks, joerg
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
2005 Jul 28
1
Forcing coefficents in lm(), recursive residuals, etc.
Hello all, Does anyone know how to constrain/force specific coefficients when running lm()? I need to run recresid() {strucchange package} on the residuals of forecast.lm, but forecast.lm's coefficients must be determined by parameter.estimation.lm I could estimate forecast.lm without lm() and use some other kind of optimisation, but recresid() requires an object with class lm.
2004 Sep 15
1
adding observations to lm for fast recursive residuals?
dear R community: i have been looking but failed to find the following: is there a function in R that updates a plain OLS lm() model with one additional observation, so that I can write a function that computes recursive residuals *quickly*? PS: (I looked at package strucchange, but if I am not mistaken, the recresid function there takes longer than iterating over the models fresh from
2010 Mar 07
2
questions about "Cusum"
Dear friends: I have just read an article entitled " Monitoring of nosocomial invasive aspergillosis and early evidence of an outbreak using cumulative sum tests (CUSUM)", which is published in "Clinical Microbiology and Infection". We have great need to estimate the fluctuation of incidence of IFI in our hospital. But I don't know the details of the stastical method and
2006 Jan 09
1
brown, durbin , evans ( 1975 )
Does anyone know where I can get R code for plotting the Brown , Durbin and Evans cumsum procedure ( 1975 ) ? I wrote my own code but I am a little worried that my confiodence bands may not be correct ( I find the formula in the original paper confusing and S+Finmetrics has a formula but that formula implies that there should be 4 lines as far as I can tell ) so I would like to see someone
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, ...)
2008 Jan 25
1
Need Advice with C# Program to Create and Display Cusum Chart
I need to write a C# program to create and display Cusum chart from any of the packages, spc, qcc or strucchange. Issues: 1-The data resides in a MS SQL Database. The C# program will handle obtaining the data for the requisite types of samples. Assistance needed on: 1-How can I call the cusum capabilities of any of the above packages and pass the data to the cusum function and plot? 2-How
2011 Nov 02
1
nproc parameter in efpFunctional
Hello all, could anyone explain the exact meaning of parameter nproc? Why different values of nproc give so different critical values, i.e. meanL2BB$computeCritval(0.05,nproc=3) [1] 0.9984853 meanL2BB$computeCritval(0.05,nproc=1) [1] 0.4594827 The strucchange-package description gives "integer specifying for which number of processes Brownian motions should be simulated" - do I need
2004 Jul 16
1
strucchange: breakpoints in inequally spaced data
Hello, we want to identify breakpoints (different phases) in environmental data, algae cell counts of three years with intervals between 7 and 30 days (N=40). We found that breakpoints(cells ~1) works great and identifies 5 very good breaks, however we are uncertain about these, because the data are unequally spaced. Is there a way to include the information about the measurement intervals,
2009 May 12
1
strucchange | weighted models
Greetings - Am hoping to use the strucchange package to look for structural breaks in some messy regression data. A series of preliminary analyses indicate that BLUE for these data will involve some weighting the data (estimates of a particular population parameter) by a function of the variance of the estimate (say, inverse of the variance). While I've gone through the docs for
2001 Jan 24
1
CuSum & V-Mask
Good Afternoon, I am currently writing a program to perform a cusum with v-mask and since I am experiencing a few problems, was wondering if there is something similar in existance? Many thanks in advance, Gavin McCabe Gavin McCabe University of Strathclyde Department of Statistics & Modelling Science Livingstone Tower (Rm. L7.47) 26 Richmond Street GLASGOW G1 1XH U.K. Tel.: +44
2004 Jul 26
1
qcc package & syndromic surveillance (multivar CUSUM?)
Dear R Community: I am working on a public health early warning system, and I see that the qcc package allows for CUSUM and other statistical quality tests but I am not sure if my project is a good match for qcc functions as written. Any advice you may have is very much appreciated. I have four years worth of daily counts of emergency room admissions for different conditions (e.g. respiratory,
2011 Nov 10
1
efpFunctional construction (strucchange package)
Hello, to understand better how efpFunctional works, I'm trying to construct my own functionals. But concerning already existing functionals I have some questions. With maxBB it is clear: functional = list(comp = function(x) max(abs(x)), time = max), with rangeBB: functional = list(time = function(x) max(x)-min(x), comp = max), with meanL2BB, if I understood correctly: functional =
2004 Aug 12
0
updated package strucchange 1.2-4
Dear useRs, the strucchange package for testing for structural change has been updated: the current version is 1.2-4. The most significant additions were two functions gefp() and efpFunctional(). gefp() implements a class of generalized M-fluctuation tests for testing for parameter instability or structural change in general parametric models including generalized linear models (GLMs).