search for: x_sum

Displaying 4 results from an estimated 4 matches for "x_sum".

Did you mean: i_sum
2011 Aug 31
2
stumped on how to reorder factors
...factor ordered by integer value), but I understand that this "mis-ordering" is because the ordering is based on a character string data type and not on an integer data type. Because I run into this problem frequently, I wrote a small function to fix this: reorder_factor = function(x, x_sum, decreasing=FALSE){ factor(as.character(x), levels=levels(x)[order(x_sum, decreasing=decreasing) ]) } I can then run the following code to fix the problem: A = reorder_factor(x=A, x_sum=as.numeric(levels(A)), decreasing=FALSE) levels(A) ... and now I have correctly ordered integers. Perha...
2020 Oct 01
0
summarize_all Function
The warning gives some suggestions. E.g., replace funs(sum,prod) with list(sum=sum,prod=prod). % R CMD Rscript -e 'library(dplyr,warn.conflicts=FALSE); data.frame(X=1:3,Y=c(11,13,17)) %>% summarize_all(funs(sum,prod))' X_sum Y_sum X_prod Y_prod 1 6 41 6 2431 Warning message: `funs()` is deprecated as of dplyr 0.8.0. Please use a list of either functions or lambdas: # Simple named list: list(mean = mean, median = median) # Auto named with `tibble::lst()`: tibble::lst(mean, median) # Using lamb...
2020 Oct 01
4
summarize_all Function
r-help Forum I'm using the dplyr:: summarize_all(funs(sum)) function and am receiving a warning message that the `funs()` is deprecated as of dplyr 0.8.0. Ok what should I be using to summarize all columns by sum? Jeff [[alternative HTML version deleted]]
2009 May 08
1
glm fit
...35 degrees of freedom Residual deviance: 14878 on 4028 degrees of freedom AIC: 16737 Number of Fisher Scoring iterations: 2 But i'm not sure what I get out of the summary. What does it tell me? How should the formula for Y look like, out from the summary? Is it something like Y=0.334288*X_sum+0.434262*X_2+ ?? And when I get a expression for Y, what does it tell me? Is it an expected expression? Can anyone help me please? -- View this message in context: http://www.nabble.com/glm-fit-tp23443121p23443121.html Sent from the R help mailing list archive at Nabble.com.