Displaying 20 results from an estimated 300 matches similar to: "correlation matrix difference"
2008 Jul 28
2
Help with a loop
HI:
I need ideas on how to make this code shorter (maybe with a second loop?).
The code as it is works, but in this case I only have 14 samples, but it
will become insane with more, so I need a way to make it more automatic. The
problem is that the output from ts1, ts2, and so on is a vector with more
than one value, so I do not know how to solve this.
Thanks
Prenewbie
The code is the
2009 Dec 04
2
how to seperate a matrix
Hello,
I am working on seperate the matrix to two matrices but got trouble on doing
it. Please give me some suggestions on doing this. Thanks a looooooooooooot!
My original matrix m is as follows for example,
[,1] [,2] [,3]
[1,] 6 8 1
[2,] 5 9 2
[3,] 20 10 3
[4,] 7 11 4
[5,] 8 12 5
[6,] 25 13 6
[7,] 14 14 7
I want to generate two
2005 Oct 31
1
how to optimise cross-correlation plot to study time lag between time-series?
Dear R-help,
How could a cross-correlation plot be optimized such that the relationship
between seasonal time-series can be studied?
We are working with strong seasonal time-series and derived a
cross-correlation plot to study the relationship between time-series. The
seasonal variation however strongly influences the cross-correlation plot
and the plot seems to be ?rather? symmetrical (max
2005 Nov 15
2
Subtracting timeseries objects
Sorry to keep posting but I want to do this right and I'm hoping for
some pointers
I now have two time series objects which I need to subtract.
Unfortunatly the two series dont have the same sample rates.
When I try to subtract them
avgSub<-avg1-avg2
The time series object is clever enough to object.
So I guess I need to write a function for subtraction of the time series
objects which
2008 Mar 31
1
concatenating two successive time series
Dear Helpers,
I am looking for methods and tools to compare and then to concatenate
two successive time series. They are both in the same frequency and they
describe one phenomena. There is no time gap between them. The problem
is that the method of measurements has changed between both time series
and they are no statistically the same. I would like to merge them to
receive one homogeneous
2004 Sep 07
6
Syntax for address range
I would like to add a rule allowing only the address 192.168.150.20 and the
range of addresses from 192.169.150.100 to 192.168.150.150 in zone dmz0 to
connect to two terminal servers in the local zone.
Is there a syntax that can specify a range of addresses in the rules file? Do
I have to enter each one separately?
--
Stephen Carville
Unix and Network Adminstrator
DPSI
6033 W.Century Blvd.
2013 Aug 29
1
Calculation with Times Series
HI,
May be this helps:
?ts1<- ts(1:20)
?ts2<- ts(1:25)
ts1[-(1:3)]<- ts1[-(1:3)]+ts2[1:17]
?as.numeric(ts1)
# [1]? 1? 2? 3? 5? 7? 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37
A.K.
Hey everyone,
I`m an absolut beginner in R and need some help for an exercise:
I want to do ordinary calculations with 2 time series. The issue
with this, that I want to use different elements of time
2007 Aug 23
1
Estimate Intercept in ARIMA model
Hi, All,
This is my program
ts1.sim <- arima.sim(list(order = c(1,1,0), ar = c(0.7)), n = 200)
ts2.sim <- arima.sim(list(order = c(1,1,0), ar = c(0.5)), n = 200)
tdata<-ts(c(ts1.sim[-1],ts2.sim[-1]))
tre<-c(rep(0,200),rep(1,200))
gender<-rbinom(400,1,.5)
x<-matrix(0,2,400)
x[1,]<-tre
x[2,]<-gender
fit <- arima(tdata, c(1, 1, 0), method = "CSS",xreg=t(x))
2002 May 31
2
error in seq.POSIXt?
I am trying to extract only the winters (defined to be 01-Dec through
28-Feb) of daily data from 1948-2002. There are 90 days in each winter
season. I wrote the following code to gather the winter dates into a
single vector:
DJF <- NULL
for(year in 1949:1999) {
temp.begin <- strptime(paste("01/12", year-1, sep="/"), "%d/%m/%Y")
temp.end <-
2005 Apr 13
2
Combine univariate time series
Hallo everyone
I have two univariate time series (class ts) describing the same variable. They have the same resolution, but span different periods in time with a big gap in between. I need to append one to the other such that they are one object, with the gap filled with NAs. The method ts.union produces a multivariate time series where the time axis is correct, but the individual time series
2008 May 25
1
n Realizations of a Stochastic Process assigned to dynamically generated variable names?
I am interested in creating multiple (say 1000) time series, from a
given stochastic process, of length 250. I want to refer to each
realization with its own variable name, of the format say, tsn, where
n is the n'th simulation. i.e. ts1, ts2, ts3, ts4, .... , ts1000
The way I am thinking of doing this is placing the following code
within another loop, and the 'tsn' assignment should
2005 Jan 06
1
GLMM and crossed effects
Hi again. Perhaps a simple question this time....
I am analysing data with a dependent variable of insect counts, a fixed
effect of site and two random effects, day, which is the same set of 10
days for each site, and then transect, which is nested within site (5
each).
I am trying to fit the cross classified model using GLMM in lme4. I
have, for potential use, created a second coding
2023 Feb 28
1
vector a partir de los valores de una tabla
Muy buenas, necesito crear un vector a partir de los valores de una tabla
como la de abajo. Debe ser algo muy fácil pero no lo encuentro en la web.
Gracias,
Manuel
246, 345, 401, 131,125, 69 a partir de:
TS1 TS2 TS3 TS4 TS5 TS6
246 345 401 131 125 69
[[alternative HTML version deleted]]
2009 Apr 03
1
how to do this "the R way"
Hi. I am sure there is a better way in R to do this then using a loop but I
am new to it and not sure what to do. I think it might be something about
using a function as an argument but not sure.
I have a 1 x 2000 vector TS2 which has entries from the set {x: x is in Z
and 0<x<8} (where Z is the set of Integers).
Then I also have a 5050 x 7 matrix called 'perm' whose entries are
2005 Jun 16
1
Sweave and sideways
Hi there,
I'm rying to 'turn' an Schunk in an .Rnw file(Xemacs-21.4.13, ESS-5.2.8,
R-2.1, miktex-2.4.1705).
Has anyone got the isorot package to work with Sweave?
JC
example test.Rnw:
\documentclass[a4paper]{article}
\usepackage{Sweave}
\usepackage{isorot}
\rotdriver{dvips}
\clockwise
\title{Sweave Example 1}
\author{apologies to Friedrich Leisch }
\begin{document}
\maketitle
2007 Jan 19
1
help with ets function in forecast package
I have been trying to use the ets function in the forecast package on a
daily time series (ts2 is a ts object with frequency =7). However when I run
the following code I get an error related to etsmodel. I have looked at ets
and I can see that there is a call to the function etsmodel, but I cant seem
to find info on the ets function anywhere. Does anyone know anything about
the etsmodel function?
2007 Oct 22
3
strsplit
Hello R Gurus:
I would like to take a character string and split at the $ sign.
I thought that strsplit would do it, but here are the results:
> vv
[1] "whine$ts1"
> vv
[1] "whine$ts1"
> strsplit(vv,"$")
[[1]]
[1] "whine$ts1"
Does anyone have any suggestions, please?
Thanks,
Edna Bell
2004 Dec 13
2
read attribute
How can I get a single attribute value of an object ?
I jhave the tiemSeries object
> ts1
Open
2003-10-09 02:00:00 1.27
2003-10-10 02:00:00 1.25
2003-10-13 02:00:00 1.27
2003-10-14 02:00:00 1.29
When I unclass ts1 I get:
> unclass(ts1)
list()
attr(,"Data")
Open
2003-10-09 02:00:00 1.27
2003-10-10 02:00:00 1.25
2003-10-13 02:00:00 1.27
2012 Mar 20
1
Remove individual rows from a matrix based upon a list
Dear All,
Thanks in advance for any help. I have a square matrix of measures of
interactions among individuals and would like to calculate a values from a
function (colSums for example) with a single individual (row) excluded in
each instance. That individual would be returned to the matrix before the
next is removed and the function recalculated. I can do this by hand
removing rows based upon
2013 Aug 06
1
Error in building pdf manual with Rtools
Dear list,
I am trying to produce a pdf manual using Rtools (version 3.1.0.1936) on Windows 8 (64-bit). I am also aware of the inconsolata issue posted in the forum (https://stat.ethz.ch/pipermail/r-devel/2013-June/066850.html), and then I have installed the patched version of R-3.0.1. However I still have some errors with the following message:
R CMD Rd2pdf mypack
Hmm ... looks like a package