search for: x1m

Displaying 5 results from an estimated 5 matches for "x1m".

Did you mean: x11
2017 Sep 09
2
Avoid duplication in dplyr::summarise
...create a single summarise function that could be applied to both. My attempt below fails. df <- data.frame(matrix(rnorm(40), 10, 4), f1 = gl(3, 10, labels = letters[1:3]), f2 = gl(3, 10, labels = letters[4:6])) df %>% group_by(f1, f2) %>% summarise(x1m = mean(X1), x2m = mean(X2), x3m = mean(X3), x4m = mean(X4)) df %>% group_by(f1) %>% summarise(x1m = mean(X1), x2m = mean(X2), x3m = mean(X3), x4m = mean(X4)) # My fail attempt s <- function() { dplyr::summaris...
2017 Sep 09
1
Avoid duplication in dplyr::summarise
Hi Lars, Two comments: 1. You can achieve what you want with a slight modification of your definition of s(), using the hint from the error message that you need an argument '.': s <- function(.) { dplyr::summarise(., x1m = mean(X1), x2m = mean(X2), x3m = mean(X3), x4m = mean(X4)) } 2. You have not given a great test case in how you set your two factors because the two group_by()'s will give the identical groupings, An alternative which confirms that the...
2017 Sep 09
0
Avoid duplication in dplyr::summarise
...be > applied to both. My attempt below fails. > > df <- data.frame(matrix(rnorm(40), 10, 4), > f1 = gl(3, 10, labels = letters[1:3]), > f2 = gl(3, 10, labels = letters[4:6])) > > > df %>% > group_by(f1, f2) %>% > summarise(x1m = mean(X1), > x2m = mean(X2), > x3m = mean(X3), > x4m = mean(X4)) > > df %>% > group_by(f1) %>% > summarise(x1m = mean(X1), > x2m = mean(X2), > x3m = mean(X3), > x4m = mean(X4)) > >...
2008 Sep 20
0
Error in GEE model fit
...2 first. library(gee) mod.pc <- gee(Y ~ X1 + X2 , id = IDENTIF2, family = binomial, corstr = "unstructured", data = na.omit(df)) gives the following result : Beginning Cgee S-function, @(#) geeformula.q 4.13 98/01/27 running glm to get initial regression estimate (Intercept) X1M X2Sans AMP X2Stim -2.7756284 0.4658861 -1.6508288 -1.5059518 Erreur dans gee(Y ~ X1 + X2, id = IDENTIF2, family = binomial, corstr = "unstructured", : NA/NaN/Inf dans un appel ? une fonction externe (argument 2) # meaning in a call to an external function De plus : Warning...
2014 Jun 24
3
[PATCH 1/2] Drop dosutil/mdiskchk.com
...QFb-*1cz3B!Bdxe7b4!4&-`}t6 z$VI|fxkq4wLxZnf at K4llA3Fb0Z18>%NdSOl4D6ZLeX*foL-cK>TH=q>kG^>C+d>(+ zZA7GBDN!F{jqXxVbXkwRJvUqOILqz#)#(Ueb>8sUV~yDO>TfS12jJl8pc0|ZP8r<u z{&af};L^j0G4Nz&>7PlxH-}=vn^EAj(hH6+?+At$jdB^xbOaA^r3GDbJhVTzAjY%@ z^ulZYI&)M7`i3iG=`@+EM1M%+X1m-u(l>KkAz&cVFOLWf27vaxb`&<GvJM%hwCcB1 z?J|%F`{0xjgK+u5zWrfm^9at^Z^8 at opXJmw!y>{FH4ztxeR+qDceM=OA9(d5#xade z-YHlL7sDiov7fd|@pCe=p8C*Zv%?Z}KssD?#BtiS(;%(R_pg|y$I+M@%-R!AtFP)J z;K~Ejwk{)VH#qW)Qv}jA%sLk}?edri2I5^gH8M&V*Ekv9zXfAa3OHQ&3~o>1;*+6y z-I~-!qSX}Rl5R1RZU^Jsnj_F2Ub8(...