Displaying 20 results from an estimated 4000 matches similar to: "S-plus coding"
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
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
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
2012 Nov 29
0
Simper analysis with Morisita-Horn
Dear ecology fellows,
I tried to implement Morisita-Horn distance (instead of Bray that is in the
current version) in the code for the Simper analysis in vegan. I would be
very grateful if someone can check if the code is right.
function (comm, group, ...)
{
if (any(rowSums(comm, na.rm = TRUE) == 0))
warning("you have empty rows: results may be meaningless")
2004 Sep 04
0
Non-Markovian Behaviour of a Cusum?
Can someone help me understand simulations of a one-sided Cusum?
Consider the following:
Q[i] = max(0, Q[i-1]+z[i]), z[i] ~ N(offset, 1), with Q[0] = FIR
(fast initial response).
With offset < 0, mean{Q[i] for fixed i averaged over many
simulations} approaches an asymptote as i -> Inf. In simulations with
abs(offset) small and FIR close to the asymptote, Q[i]
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
2007 Jan 12
4
Voxbone Question
Hi List,
I recently signed up with Voxbone to get some International DIDs. I
was just about to purchase a DID this morning... but when I went to
get it.... voxbone wanted the end user's address information. So I
started to put it in... unfortunately... the end-user is in the
U.S....but the only options are for a few select cities in GERMANY!
I don't understand. Is there some
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
2005 Mar 18
1
Moving from 0.99 to 1.0-stable
What is involved in migrating from 0.99 to 1-stable? (I'd be creating a
FreeBSD port to work with, but the main question I have is what would need
to be done to configuration files.)
Thanks,
Jim
--
Jim Trigg, Lord High Everything Else O- /"\
Hostmaster, Huie Kin family website \ / ASCII RIBBON CAMPAIGN
Verger and System Administrator, X HELP CURE HTML MAIL
All
2005 Nov 18
1
Upgrading from 0.99 to 1.0alpha
Since FreeBSD has decided to drop Dovecot 0.99 and only provide a port for
1.0alpha4, what are the considerations for upgrading from 0.99.14 to
1.0a4?
Thanks,
Jim
--
Jim Trigg, Lord High Everything Else O- /"\
Hostmaster, Huie Kin family website \ / ASCII RIBBON CAMPAIGN
Verger and System Administrator, X HELP CURE HTML MAIL
All Saints Church - Sharon Chapel
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
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
2005 Aug 04
1
Counterintuitive Simulation Results
I wonder if someone can help me understand some counterintuitive
simulation results. Below please find 12 lines of R code that
theoretically, to the best of my understanding, should produce
essentially a flat line with no discernable pattern. Instead, I see an
initial dramatic drop followed by a slow rise to an asymptote.
The simulation computes the mean of 20,000 simulated trajectories
1997 Mar 31
5
UK Encryption ban legislation {from: [comp.risks] RISKS DIGEST 18.95}
I think this is an issue of serious interest to many of the subscribers
of these lists; it would effectively ban a lot of security-related tools
that many of use now find indispensable, e.g. ssh, pgp.
------- Start of forwarded message -------
Date: 21 Mar 1997 10:11:57 GMT
From: rja14@cl.cam.ac.uk (Ross Anderson)
Approved: R.E.Wolff@BitWizard.nl
Subject: DTI proposals on key escrow
The British
2005 Apr 13
5
Binary Matrices
I'm wanting to perform analysis (e.g. using eigen()) of binary matrices - i.e. matrices comprising 0s and 1s.
For example:
n<-1000
test.mat<-matrix(round(runif(n^2)),n,n)
eigen(test.mat,only.values=T)
Is there a more efficient way of setting up test.mat, as each cell only requires a binary digit? I imagine R is setting up a structure which could contain n^2 floats.
Thanks in advance
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,