search for: sortvar

Displaying 3 results from an estimated 3 matches for "sortvar".

2004 Nov 26
0
Modes again
...asked for mode calculation function and it would really nice to have it in R by default. modus <- function (x) { # Returns the modes of a value set # Based on Ross NELSONs code from 2004-11-16 (on R-help mailling list) # create a table with the values sorted by frequency sortvar <- sort(table(x)) # get the max frequency maxfreq <- max(sortvar) # find values with high frequency modeTable <- which(sortvar == maxfreq) # get the name (value) of the most frequent value themoderesult <- names(modeTable) # Report return(themoder...
2004 Nov 26
0
Modes again
...asked for mode calculation function and it would really nice to have it in R by default. modus <- function (x) { # Returns the modes of a value set # Based on Ross NELSONs code from 2004-11-16 (on R-help mailling list) # create a table with the values sorted by frequency sortvar <- sort(table(x)) # get the max frequency maxfreq <- max(sortvar) # find values with high frequency modeTable <- which(sortvar == maxfreq) # get the name (value) of the most frequent value themoderesult <- names(modeTable) # Report return(themoder...
2010 Jan 10
0
ordering of additional columns in forest plot in meta package
...my title here", byvar=rnd.subgroup1, print.byvar=T, leftcols=c("studlab","rnd.subgroup1","rnd.subgroup2","event","n"), # sort order not right for 'rnd.subgroup1' and 'rnd.subgroup2' bylab=c("one","two"), sortvar=-n, col.i=rnd.subgroup1, col.by=c("royalblue"), xlim=c(0,.5) ) I suspect that it may have to do with an omitted indexing command in the forest function. Your input in kindly appreciated. Philip de Witt Hamer, MD PhD VU medical center dept neurosurgery PO Box 7057 1007 MB Amsterdam T...