search for: week2

Displaying 8 results from an estimated 8 matches for "week2".

Did you mean: weeks
2000 Jan 04
0
Stepwise logistic discrimination - II
...RAG26 + FRAG27 + FRAG28 + FRAG29 + FRAG30 + FRAG31 + FRAG32 + FRAG33 + FRAG34 + FRAG35 + FRAG36 + FRAG37 + FRAG38 + FRAG39 + FRAG40 + FRAG41 + FRAG42 + FRAG43 + FRAG44 + FRAG45, data = nose126s) Coefficients: (Intercept) FRAG25 FRAG26 FRAG27 FRAG28 week2 -5.875869e-09 -0.0002762473 0.0002939013 -5.006443e-05 -1.974740e-07 week3 1.746245e-08 -0.0001898158 0.0001851999 4.408521e-05 1.891675e-07 week4 -1.537005e-09 -0.0000875455 0.0003595600 -9.254731e-05 4.324163e-07 FRAG29 FRAG30 FRAG31 FRAG32 FRAG33 week2...
2005 Jun 16
1
identical results with PQL and Laplace options in lmer function (package lme4)
...lmer function gave me the same results (random and fixed effects estimates, standard error and p.values). However, Loglikelihood and deviance are different. here is an example reproduced with the bacteria data set available in the MASS package: library(lme4) library(MASS) data(bacteria) bacteria$week2 <- as.factor(ifelse(bacteria$week <=2, 0, 1)) model.PQL <- lmer(y ~ trt + week2 + (1 | ID), family = binomial, data = bacteria, method ="PQL") model.Laplace <- lmer(y ~ trt + week2 + (1 | ID), family = binomial, data = bacteria, method ="Laplace") model.PQL model.L...
2006 Nov 15
1
dynamic aggregation of many variables
...regations, 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(dmx3,select=c(ID,week3)) week4 <- grep("(_PRO_004)",names(dmx3),perl=T) week4table <- subset(d...
2007 Jul 23
3
Aggregate daily data into weekly sums
.../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 i386-pc-mingw32 arch...
2010 Jun 18
0
pcse package - is it OK to use it when my regression is weighted by each subgroup's mean
...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 of each location as a weight when I run thi...
2004 Jan 30
0
GLMM (lme4) vs. glmmPQL output (summary with lme4 revised)
....36 2.44e-01 I(week > 2)TRUE -1.325 0.368 12.96 3.18e-04 --- glmm/repeated/J.K.Lindsey Estimate Std. Error z value Pr(>|z|) (Intercept) -3.569 0.549 -6.51 7.8e-11 *** trtdrug 1.367 0.486 2.81 0.00490 ** trtdrug+ 0.786 0.498 1.58 0.11408 week2TRUE 1.623 0.459 3.53 0.00041 *** sd 1.294 0.250 5.17 2.3e-07 *** --- --------------------------------------------------------------- data(bacteria,package="MASS") UseMASS<-T # must restart R after changing because of nlme/lme4 clash if (UseMASS){...
2007 Aug 20
1
Ask for functions to obtain partial R-square (squared partial correlation coefficients)
...rrelation coefficients) measures the marginal contribution of one explanatory variable when all others are already included in multiple linear regression model. The following link has very clear explanations on partial and semi-partial correlation: http://www.psy.jhu.edu/~ashelton/courses/stats315/week2.pdf In SAS, the options is PCORR2 and SCORR2. For example(from http://www.ats.ucla.edu/stat/sas/examples/alsm/alsmsasch7.htm) data ch7tab01; input X1 X2 X3 Y; label x1 = 'Triceps' x2 = 'Thigh cir.' x3 = 'Midarm cir.' y = 'body fat'; cards...
2010 Apr 07
1
finding weekly average...
...s 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]]