Displaying 6 results from an estimated 6 matches for "week1".
Did you mean:
weeks
2006 Nov 15
1
dynamic aggregation of many variables
Hi,
i have many variables for in example 4weeks and want to do
aggregations, like mean standard , deviation etc..
With mean it works but how i can calculate the standard deviation for
the 4weeks and for every ID.
many thanks & regards, christian
week1 <- grep("(_PRO_001)",names(dmx3),perl=T)
week1table <- subset(dmx3,select=c(ID,week1))
week2 <- grep("(_PRO_002)",names(dmx3),perl=T)
week2table <- subset(dmx3,select=c(ID,week2))
week3 <- grep("(_PRO_003)",names(dmx3),perl=T)
week3table <- subset(d...
2007 Jul 23
3
Aggregate daily data into weekly sums
...7 6/12/2007 3
8 6/13/2007 3
9 6/13/2007 3
10 6/18/2007 4
11 6/18/2007 4
12 6/25/2007 5
13 6/28/2007 5
Basically, I would like to collapse the daily data into weekly sums
such that the result should look like the following:
Date Amount
1 2007/6/Week1 2
2 2007/6/Week2 4
3 2007/6/Week3 15
4 2007/6/Week4 8
5 2007/6/Week5 10
Does there already exist a function that aggregates the data at
user-defined time frequency?
Any pointers would be greatly appreciated.
Jacques
> version
_
platform i...
2010 Apr 07
1
finding weekly average...
...have some breaks because of missing
data***). Something like this:
Date Var1 Var2
12/01/2004 7 0
12/01/2004 0 0
12/01/2004 0 7
12/01/2004 7 0
12/01/2004 0 7
12/01/2004 0 7
12/02/2004 0 0
...
I need to find out weekly average of var1 and var2, so that I end up with
data like:
Week Year Var1 Var2
week1 2004 2 3
week2 2004 4 2
...
week52 2004 4 4
week1 2005 2 3
...
Can anyone help please, any help would be greatly appreciated. Thanks!
[[alternative HTML version deleted]]
2010 Jun 18
0
pcse package - is it OK to use it when my regression is weighted by each subgroup's mean
...like to make sure I am not doing something wrong.
I am running an OLS regression. I have several subgroups in the data
set (locations) - and in each location I have weekly data for 2 years
- on my DV and on all predictors. Looks like this:
location week DV Predictor1 Predictor 2
location1 week1 xxx xxxxxxx xxxxxxxxx
location1 week2 xxx xxxxxxx xxxxxxxxx
.
.
.
location2 week1 xxx xxxxxxx xxxxxxxxx
location2 week2 xxx xxxxxxx xxxxxxxxx
My DV variable was mean-centered - for each location and I am using
this mean-centered DV as the DV in lm. Also, I am using the mean...
2010 Feb 19
1
ggplot2 X axis levels
Hi all:
I've done this before with factors but can't figure how to do it with
a continuous variable. I am trying to reorder the sequence of my weeks
along the X axis. I want to start with week 27 to 52 and then 1 to 26.
I guess I could use levels along with seq() but doesn't seem to work for me.
Thanks for your help
winter <- structure(list(week = c(27L, 28L, 29L, 30L, 31L, 32L,
2013 Jan 04
2
Can you help me please
HI Fares,
You could try this:
dat1<- read.table(text="
date????? donation
3jan2003?? 20235
4jan2003?? 25655
5jan2003?? 225860
6jan2003?? 289658
7jan2003?? 243889
8jan2003?? 244338
9jan2003?? 243889
",sep="",header=TRUE,stringsAsFactors=FALSE)
The post is not very specific as to what you need.? I hope this works for you.
library(xts)