Displaying 20 results from an estimated 5000 matches similar to: ": How wo read stability VAR plot?"
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,
2014 Mar 10
3
Frecuencia absoluta acumulada por individuo y por año
Hola,
Vaya, en el código que he enviado, cusum no se incrementaba..
Y has indicado que se introduce un año más, con el mismo ID que el anterior
y con la misma cantidad acumulada. Pero si el siguiente año es del mismo
ID, acumula el valor de la cantidad que hemos introducido en esa fila...
Con el siguiente código se resuelve este error y además ya está preparado
para contemplar cualquier tipo de
2014 Mar 12
3
Frecuencia absoluta acumulada por individuo y por año
Llego tarde al hilo, pero creo que se llega rápidamente al resultado con la
complicidad del paquete "reshape2". Si DT es el data.table que escojo Francisco como
ejemplo:
> DT
ID YEAR CANTIDAD
1: 100 2005 1
2: 100 2005 2
3: 100 2007 1
4: 100 2007 1
5: 100 2007 1
6: 120 2006 1
7: 120 2006 5
8: 120 2006 1
9: 120 2007 3
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
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
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
2009 Apr 10
3
turning list into vector/dataframe
Hi,
I have used this command :
resamples<-lapply(1:1000,function(i) sample(lambs,replace=F))
resamples2<-lapply(resamples,Cusum)
to get a list of 1000 samples of my data. The function Cumsum is defined as
follows:
Cusum<-function(x){
SUM<-cumsum(x)-(1:length(x))*mean(x)
min<-min(cumsum(x)-(1:length(x))*mean(x))
max<-max(cumsum(x)-(1:length(x))*mean(x))
diff<-max-min
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
2009 Oct 30
1
R strucchange question: recursive-based CUSUM
Hello R users:
I'm trying now to apply the package strucchange to see whether there is
a structural change in linear regression. I have noted the following
problem that arises in my case with recursive-based CUSUM: generic
function recresid() in efp() generates an error, since (probably) it
cannot compute the inverse matrix of (X^(i-1)^T)*(X^(i-1)) at each step
(i-1), because the matrix
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,
2009 Jan 12
1
Help with storage of each matrix generated in a loop
I need to store each matrix generated in a loop.
I've been working with the CUSUM algorithm and I've been trying to implement
it in R.
What I need to do with my dataset is to create 1000 randomized datasets and
cumulative sum them all and store all of those randomized CUSUMed datasets
for further analysis and creation of the simulation envelope in the CUSUM
chart. But I can't manage
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 Apr 29
1
accessing information in lists
I've created a dataframe containing multiple ACF lists through the command
rev.acf<-apply(rev.matrix, 2, acf, na.action=na.contiguous, lag.max=12, plot=FALSE)
where rev.matrix is an n by t matrix containing n time series in columns. I'd now like to pull out only the ACF information and store it in a seperate n by 12 matrix. So far the only way I can work out to access this is
2010 Dec 08
1
Newbie trying to understand $ so I can understand acf function in stats
I am trying to understand the function acf
stats:::acf shows me the function
I am having trouble understanding the usage "$acf" in the following
acf <- array(.C(R_acf, as.double(x), as.integer(sampleT),
as.integer(nser), as.integer(lag.max), as.integer(type ==
"correlation"), acf = double((lag.max + 1L) * nser *
nser), NAOK =
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
2009 May 20
1
stationarity tests
How can I make sure the residual signal, after subtracting the trend extracted through some technique, is actually trend-free ?
I would greatly appreciate any suggestion about some Stationarity tests.
I'd like to make sure I have got the difference between ACF and PACF right.
In the following I am citing some definitions. I would appreciate your thoughts.
ACF(k) estimates the correlation
2006 Nov 13
1
bug in acf (PR#9360)
Full_Name: Ian McLeod
Version: 2.3.1
OS: Windows
Submission from: (NULL) (129.100.76.136)
> There is a simple bug in acf as shown below:
>
> z <- 1
> acf(z,lag.max=1,plot=FALSE)
> Error in acf(z, lag.max = 1, plot = FALSE) :
> 'lag.max' must be at least 1
>
This is certainly a bug.
There are two problems:
(i) the error message is wrong since lag.max is
2010 Sep 26
1
acf function
Hi,
Im new to R so this question is quite fundamental.
Im trying to compare some autocorrelations generated by the acf function to some theoretical correlations. How can I have acces to just the autocorrelations, for computation?
This is some of my code:
> acf.data<-c(acf(x))
> acf.data
This is the R output:
$acf
, , 1
[,1]
[1,] 1.000000000
[2,]
2002 May 08
1
ts acf accessing to values
Hi,
I don't quite understant how can I access to the acf values from the
list produced by the acf function
Example:
library(ts)
t <- acf(ts.union(ts(1:10), ts(11:20)))
t$acf
> tmp$acf
, , 1
[,1] [,2]
[1,] 1.00000000 1.00000000
[2,] 0.70000000 0.70000000
[3,] 0.41212121 0.41212121
[4,] 0.14848485 0.14848485
[5,] -0.07878788 -0.07878788
[6,] -0.25757576
2011 Nov 06
1
VAR and VECM in multivariate time series
Hello to everyone!
I am working on my final year project about multivariate time series. There
are three variables in the multivariate time series model.
I have a few questions:
1. I used acf and pacf plot and find my variables are nonstationary. But in
adf.test() and pp.test(), the data are stationary. why?
2.I use VAR to get a model. y is the matrix of data set and I have made a
once