search for: fdeaths

Displaying 15 results from an estimated 15 matches for "fdeaths".

Did you mean: deaths
2005 Oct 10
1
acf.plot() question
When I run the "acf()" function using the "acf(ts.union(mdeaths, fdeaths))" example, the "acf()" function calls the "acf.plot()" function to generate this plot... http://members.cox.net/ddebarr/images/acf_example.png The plot in the lower right-hand corner is labeled "fdeaths & mdeaths", but the negative lags appear to belong to &...
2017 Oct 18
1
dygraphs, multiple graphs and shiny
...mber of dygraphs into one plot. If I am just in an RNotebook, if you look at: https://stackoverflow.com/questions/30509866/for-loop-over-dygraph-does-not-work-in-r the solution to have the plot shown from a RNotebook is code like this: > library(dygraphs) > lungDeaths <- cbind(mdeaths, fdeaths) > res <- lapply(1:2, function(i) dygraph(lungDeaths[, i])) > htmltools::tagList(res) and if you put that into an RNotebook and knit it, it works. Okay in order to have a reproducible example, I now try to create a Shiny App using that example, and the template generated by RStudio. T...
2000 Apr 03
1
cbind.ts(),ts.union() (PR#508)
Full_Name: Wolfgang Koller Version: 1.0.0 OS: linux Submission from: (NULL) (137.208.7.48) > data(UKLungDeaths) > ts.union(mdeaths, fdeaths,dframe=TRUE) Error in names<-.default(*tmp*, value = nmsers) : names attribute must be the same length as the vector > cbind(mdeaths, fdeaths,dframe=TRUE) Error in names<-.default(*tmp*, value = nmsers) : names attribute must be the same length as the vector should not g...
2003 Aug 08
1
understanding time series objects
...is: mdeaths2<-as.matrix(mdeaths) dim(mdeaths2)<-c(12,6) mdeaths2<-apply(mdeaths2,2,cumsum) mdeaths[]<-mdeaths2 # It is not very efficient to solve the problem of applying a cummulative sum to each year ### Second, for a multivariate ts: data(UKLungDeaths) Multits<-ts.union(mdeaths, fdeaths) # Why does Multits$mdeaths # not work and I have to use: Multits[,"mdeaths"] # Is it the way it works or am I missing something? # Thanks as always, # Angel
2007 Apr 10
1
Computing fundamental harmonics from a periodogram
Dear all, I'm trying to finding the fundamental harmonics (ie. peaks in a periodogram) from a time series (extracted from an mp3). For example, if I look at spectrum(fdeaths, spans = c(3,3)) I'd say the fundamental harmonics are about 1, 2, 3.5 and 4.5 - but how can I extract these automatically? (preferably with some heuristic for choosing the smoothing spans too) I'm aware of heuristic methods for finding peaks for general sequences (as found by searching...
2004 Jan 01
1
Barplot errors in MASS script
...ding examples both in the book and in ../lib/R/library/MASS/script, I'm now trying chapter 4 plotting bars with the following code on a linux box with R 1.8.1: ---------------------- library(MASS) library(lattice) options(echo=T, width=65, digits=5) lung.deaths <- aggregate(ts.union(mdeaths, fdeaths), 1) barplot(t(lung.deaths), names = dimnames(lung.deaths)[[1]], main = "UK deaths from lung disease") if(interactive()) legend(locator(1), c("Males", "Females"), fill = c(2, 3)) ----------------------- The legend doesn't look correct with respect to t...
2005 Aug 02
1
multiple scale
...possible for the left axis. ## See also: 'ts.plot', 'ts', 'legend'. ## Author and date: Hauksson, Bjorn Arnar. March 2004. ## Example: ## First paste this function into the R console or use 'source'. #library(ts) #data(UKLungDeaths) #x <- ldeaths #y <- fdeaths/mdeaths #ts.plot.2Axis(x, y) #legTxt <- c("UK lung deaths", "UK female/male deaths (rhs)") #legend(1976.5, 3950, legTxt, lty=c(1:2), col=c(1:2), lwd=2, bty="n") ## ts.plot.2Axis <- function(xleft, xright, digits=1, ticks=5, mar=(...
2006 Sep 15
1
"ccf versus acf"
I am trying to run a cross-correlation using the "ccf()" function. When I select plot = TRUE in the ccf() I get a graph which has ACF on the y-axis, which would suggest that these y-values are the auto-correlation values. How should I adjust the code to produce a plot that provides the cross-correlation values? Here is my code: w002dat <-
2008 Oct 28
1
acf() plots of a data.frame: what meaning?
Hello, what is the meaning of the plots of an acf()-plot, when using a data frame as argument? The result is NOT obvious for me. There are combinations of the columns of a dataframe in the reulting plot. But an acf() is just defined for onyl one time-sreies. So what do the plots mean? I did not found a description in the help-page. Ciao, Oliver
2008 Jul 25
1
How to pass function argument of same name to internal call?
I ran across this problem when playing with ccf(). Its function call is >function (x, y, lag.max = NULL, type = c("correlation", "covariance"), plot = TRUE, na.action = na.fail, ...) Internally, ccf() calls plot(), which digs up plot.acf() whose default style is type='h' . I wanted to pass the argument type='l' to the plotting routine, but of
2005 Feb 02
4
(no subject)
...veries esoph Smoking, Alcohol and (O)esophageal Cancer euro Conversion Rates of Euro Currencies euro.cross (euro) Conversion Rates of Euro Currencies eurodist Distances Between European Cities faithful Old Faithful Geyser Data fdeaths (UKLungDeaths) Monthly Deaths from Lung Diseases in the UK freeny Freeny's Revenue Data freeny.x (freeny) Freeny's Revenue Data freeny.y (freeny) Freeny's Revenue Data infert Infertility after Spontaneous and Induced...
2004 Mar 04
1
Lineair regression modelling between time series //correlation analysis
Dear R specialists, I'm working with time series and want to investigate the relationship between two time series by correlation analysis or by fitting a gen. lineair model to the plot of x(timeserie1) and y(timeserie2). Lin1 <- data.frame( Nr = c(1:lengte), NDII = window(ts.mNDII,c(1998,10),c(2003,11)), InvERC = window(Inv.ERC,c(1998,10),c(2003,11)) )
2004 Mar 24
0
High/low level: Plot 2 time series with different axis (left and ri ght)
...ere only possible for the left axis. ## See also: 'ts.plot', 'ts', 'legend'. ## Author and date: Hauksson, Bjorn Arnar. March 2004. ## Example: ## First paste this function into the R console or use 'source'. #library(ts) #data(UKLungDeaths) #x <- ldeaths #y <- fdeaths/mdeaths #ts.plot.2Axis(x, y) #legTxt <- c("UK lung deaths", "UK female/male deaths (rhs)") #legend(1976.5, 3950, legTxt, lty=c(1:2), col=c(1:2), lwd=2, bty="n") ## ts.plot.2Axis <- function(xleft, xright, digits=1, ticks=5, mar=(c(4,4...
2003 Apr 09
1
'Apparently' trouble with name spaces and Sweave...
...g vignettes ... ERROR Error in namespaceExport(ns, exports) : undefined exports: abbey, accdeaths, Aids2, Animals, anorexia, austres, bacteria, beav1, beav2, biopsy, birthwt, Boston, cabbages, caith, Cars93, cats, cement, chem, coop, cpus, crabs, Cushings, DDT, deaths, drivers, eagles, epil, farms, fdeaths, fgl, forbes, GAGurine, galaxies, gehan, genotype, geyser, gilgais, hills, housing, immer, Insurance, leuk, lh, mammals, MASS.data.load, mcycle, mdeaths, Melanoma, menarche, michelson, minn38, motors, muscle, newcomb, nlschools, nottem, npk, npr1, oats, OME, painters, petrol, phones, Pima.te, Pima....
1999 Jul 27
3
Preliminary version of ts package
...Numbers uspop Populations Recorded by the US Census Datasets in package ts: ---------------------- accdeaths US accidental deaths 1973-8 beaver1 time series of body temperatures of two beavers beaver2 deaths time-series on UK lung deaths 1974-9 from Diggle (1990) mdeaths, fdeaths as above, for males and females drivers time series on UK road deaths of drivers from Harvey (1989) finance daily closing prices of major European stock indices, 1991-1998 lh dataset on luteinizing hormone from Diggle (1990) nottem time-series of temperatures in Notti...