Displaying 20 results from an estimated 900 matches similar to: "turning list into vector/dataframe"
2009 Apr 07
6
Sequences
Hi,
I am trying to make a sequence and am using a for loop for this. I want to
start off with an initial value ie S[0]=0 then use the loop to create other
values. This is what I have so far but I just keep getting error messages.
#To calculate the culmulative sums:
s<-rep(0,207) #as this is the length of the
vector I know I will have
s<-as.vector(s)
2009 May 13
2
converting numeric into character strings
Hi,
Im trying to put some numbers into a dataframe , I have a list of numbers
(change points in a time series) like such
[1] 2 11 12 20 21 98 99
but I want R to recognise this as just a character string so it will put it
in one row and column, ideally I want them seperated by commas so I would
have for example
Person Change points (seconds)
A
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
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
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,
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
2014 Mar 10
4
Frecuencia absoluta acumulada por individuo y por año
Hola,
Hola a todos,
Os escribo porque no consigo finalizar el script necesario para realizar lo que a continuación planteo. Partiendo de un data frame (2 millones de casos), tengo:
> datos2
ID FECHA YEAR CANTIDAD
1 100 2005-08-02 2005 1
2 100 2005-10-19 2005 2
3 100 2007-02-09 2007 1
4 100 2007-10-25 2007 1
5 100 2007-10-29 2007 1
6 120 2006-05-11
2013 Apr 27
3
path reference problems in R 3.0.0
Hi-
I just upgraded R to 3.0.0 from 2.15.1 (which worked fine). When I started
trying to install updated versions of the libraries, I saw the following
error:
> install.packages("lme4")
Installing package into 'c:/Docume~1/melissa/R/win-library/3.0'
(as 'lib' is unspecified)
Warning in install.packages :
2006 Feb 28
3
Agile Web Development Example Application Question
I''m new to Ruby and to fairly new to programming. I''ve been working
through the "Agile Web Development with Rails" book, and I''m stuck on page
73 of the print version. The book''s online errata directed me here with my
questions.
I''m running Ruby 1.8.3 with MySQL 4.1.8 on OSX 10.3.9. I''ve created the
scaffolding for Admin controller
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,
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
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
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
2010 Nov 29
3
Help Please!!!!!!!!!
Hi,
I have been working with Program R for my stats class and I keep coming upon
the same error, I have read so many sites about inputting data from a text
file into R and I'm using the data to do a correspondence analysis. I feel
like I have read everything and it is still not explaining why the error
message keeps coming up, I have used the exact examples I have seen in
articles and the
2009 Apr 03
2
Linear model, finding the slope
Hi
for some data I working on I am merely plotting time against temperature for
a variable named filmclip. So for example, I have volunteers who watched
various film clips and have used infared camera to monitor the temperature
on their face at every second of the clip.
The variable names I have used are Normalised ( for the temperature) and
Frame (for the time in seconds).
So I have fitted a
2012 Jan 28
2
finding rows in a matrix that match a vector
Hi,
Please excuse my ignorance, but I am just learning R (this is my very first
day programming in R) and having a really hard time figuring out how to do
the following:
I have a matrix that is 1000 row by 6 columns (named 'table.combos') and a 1
row by 6 column vector (named 'mine'). I want to find every row in
'table.combos' that equals 'mine' and then count
2007 Dec 13
3
what does cut(data, breaks=n) actually do?
Hello,
I'm trying to bin a quantity into 2-3 bins for calculating entropy and
mutual information. One of the approaches I'm exploring is the cut()
function, which is what the mutualInfo function in binDist uses. When it's
called in the format cut(data, breaks=n), it somehow splits the data into n
distinct bins. Can anyone tell me how cut() decides where to cut?
Thanks,
Melissa
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