similar to: Help finding the mode and maximum for a specified 'window' of time series data

Displaying 20 results from an estimated 2000 matches similar to: "Help finding the mode and maximum for a specified 'window' of time series data"

2009 Oct 28
1
Need help locating the longest series of consecutive numbers in a matrix
I need to determine the length of the longest series of consecutive numbers (1's to be specific) and the start time of that series. For example, in the following sample, the first column is "time" and the second column indicates the presence of the target behavior. I would like a function that would return "21" as the start time and "17" as the length. sample
2010 Aug 30
1
Help With Post-hoc Testing
I am trying to do post-hoc tests associated with a repeated measures analysis with on factor nested within respondents. The factor (SOI) has 17 levels. The overall testing is working fine, but I can''t seem to get the multiple comparisons to work. The first step is to "stack" the data. Then I used "lme" to specify and test the overall model. Finally
2006 Aug 11
1
x tick labels - sparse?
Hi, I'm stuck on creating a plot with x tick labels for every Nth tick mark - how is that done? I don't see a simple solution to this in help(plot) or help(par) and what I've tried is not working, eg, the following does not work, although it seems intuitive to me that it should work: x <- seq(-100,1000,25) y <- x * x % find all the x values that are multiples of 100 tmp <-
2008 Jan 08
1
using lapply()
useR's, I am trying to find a quick way to change some values in a list that are subject to a condition to be NA. Consider the 3x1 matrix: delta <- matrix(c(2.5,2.5,1), nrow = 1) And consider the list named v that has 3 elements > v v[[1]] [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] 4.25 3.25 2.25 1.25 0.25 0.75 1.75 2.75 3.75 4.25
2008 Oct 03
1
NA's in segmented
I am trying to fit a very simple broken stick model using the package "segmented" but I have hit a roadblock. > str(data) 'data.frame': 18 obs. of 2 variables: $ Bin : num 0.25 0.75 1.25 1.75 2.25 2.75 3.25 3.75 4.25 4.75 ... $ LnFREQ: num 5.06 4.23 3.50 3.47 2.83 ... I fit the lm easily: > fit.lm<-lm(LnFREQ~Bin, data=id07) But I keep getting an error
2009 Aug 13
1
R code to reproduce (while studying) Bates & Watts 1988
Hi R users, I'm here trying to understand correlated residuals in nonlinear estimation. I'm reading/studying the book Bates, D. M. and D. G. Watts, (1988), /Nonlinear regression analysis and its applications/, Wiley, NY. pages 92-94, trying to reproduce the figures and to find out the code in R to perform the necessary calculations. I also consulted Pinheiro and Bates, but without
2004 Feb 06
3
quantile function
I am trying to `cut' a continuous variable into contiguous classes containing approximately an equal number of observations. I thought quantile() was the appropriate function to use in order to find the breakpoints, but I end up with classes of different sizes - see example below. Does anybody have an explanation for that? And what is the `recommended' way of computing what I am looking
2013 Feb 28
2
Ayuda con función tapply
Hola Compañeros, Estoy tratando de "contar" utilizando la función tapply y length y obtengo un error que no entiendo. Agradecería su ayuda. Las líneas son las siguientes: UNO <- subset (datos, CRIH2008 == "VERDADERO") dim (UNO) Abund2008 <- tapply (UNO$Cons, list(UNO$Site, UNO$Trat), length, na.rm=T) Y obtengo este error: Error en FUN(X[[1L]], ...) : 2 arguments
2014 Aug 25
5
problema con campos que tienen formato fecha
Hola Javier, Muchas gracias por responder tan rápido! Yo trabajo en Mac OS X 10.9.4. Versión 0.98.953 de RStudio. Versión 3.0.2 (2013-09-25) de R. ## Este es el script que estoy trabajando. Se trata de una rutina para automatizar el cálculo de la duración del evento. setwd("/Users/angelacamargosanabria/Documents/ANGELITA/1-DOC/1-TESIS/4-PAPERS/1-Mamiferos/DATOS/Bases") BASE <-
2009 Jun 18
1
recovering the name of a given value in a matrix
Hi all, I've got object *cumsumtab, *where the first row (1,2,3,4,5,6,8,13,14,17,40) are names (actually, categories), and the second row has numeric values. > cumsumtab 1 2 3 4 5 6 8 13 14 17 40 2 4 6 7 9 11 13 14 15 16 17 I'm trying to find a way of finding to which category ( in *names(cumsumtab) * ) belongs a given value (let's say Q1 <- 4.25). So far, I've
2011 Mar 23
2
información sobre símbolos
Buenos días a todos, Una pregunta muy sencilla, podrían por favor informarme dónde puedo conocer el significado de símbolos como $, %, == que se utilizan frecuentemente en R? Gracias, Angela C. ---- *Angela Andrea Camargo Sanabria* Estudiante Doctorado en Ciencias Biológicas Laboratorio de Ecología de poblaciones y comunidades tropicales Centro de Investigaciones en Ecosistemas (CIEco) UNAM,
2009 Jul 29
3
Installing lme4 package in Windows Vista
Hi all, I have a problem with package installing in Windows, on my PC machine. The end goal is to be able to use the lme() function. Here's what I did so far: > install.packages("lme4") Warning in install.packages("lme4") : argument 'lib' is missing: using 'C:\Users\Angela\Documents/R/win-library/2.9' --- Please select a CRAN mirror for use in this
2016 Sep 07
3
tips para curso introductorio de R
Gracias chicos por sus opiniones y recomendaciones. Como dice Javier Rubén, justo lo que quiero es que los chicos aprendan bien los fundamentos de un lenguaje de programación orientado a objetos para que no solo copien el script de una librería, corran y ya. Quisiera que comprendieran los beneficios de R en términos de manipulación de sus bases de datos y optimización de procesos a través de los
2012 Jun 06
2
pregunta sobre libro de Legendre
Hola a todos, Por casualidad alguno que tenga el libro de Legendre de Numerical Ecology with R sabe dónde o cómo bajar los data sets que se mencionan para seguir los ejemplos? Muchas gracias por su ayuda! ---- *Angela Andrea Camargo Sanabria* Estudiante Doctorado en Ciencias Biológicas Laboratorio de Ecología de poblaciones y comunidades tropicales Centro de Investigaciones en Ecosistemas
2012 Dec 14
2
una programación sencilla
Hola a todos, Escribo para preguntarles sobre cómo programar algo, que estoy segura es algo bastante sencillo para muchos de Uds que tienen amplia experiencia programando. Lo describo a continuación. Tengo una base de datos (file = datos) de especies (de plantas) en donde cada fila es un individuo de una especie con ciertos atributos (alrededor de 1500 filas = individuos). Quería anexar en esta
2006 May 24
6
newbie question: missing template
Hi I''m new to this forum and new to Rails so excuse me if this is a daft question. I''m following the ONLamp.com tuturial and all has been well untill changing the template for the recipes. I have followed the instructions and added this code to the controller: class RecipeController < ApplicationController scaffold :recipe def list @recipes = Recipe.find_all end
2005 Mar 23
9
multiple vpn connections out via shorewall
Hi All, Just joined the list to try and solve a problem. To show that I''ve read the rules I''ll start with the requested info os linux kernel-2.4.27 with latest netfilter pom for gre and pptp conntrack etc iptables is 1.3.0 - downloaded and compiled with the pom stuff and the 2.4.27 kernel shorewall version shorewall-2.2.1-2 from rpm ip addr show [root@squid3 root]# ip addr
2012 Dec 04
5
Network traffic tool
Hi everybody, I have my firewall with shorewall runing and I dont have a proxy. I would like to know which tool can I use to log my web traffic from my users. I have ntop working but I dont think this tool helps me on this. Any suggestion? Thanks ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
2005 Jan 26
2
networks in R
Good afternoon, do you know if R provides a special package to make networks ? Thank you, Angela
2012 Jan 31
6
Shorewall and sshdfilter
Hi All! Been quite a few years and lots of water under the bridge but here I am back! I have a customer that has now decided they need a bit more bandwidth over and above their fixed line! They are not in a good area for ADSL because of copper theft and being a bit to far from the closest DSLAM! They have installed a wireless link and I have made certain that put it behind my simple iptables