Displaying 2 results from an estimated 2 matches for "subgroup3".
Did you mean:
subgroup
2002 Oct 28
2
subsetting character vector into groups of numerics
...of character vectors that look something like this:
"12 78 23 9 76 43 2 15 41 81 92 5(92 12) (81 78 5 76 9 41) (23 2 15 43)"
I wish to get it into a list of numerical vectors like this:
$Group
[1] 12 78 23 9 76 43 2 15 41 81 92 5
$Subgroup1
[1] 92 12
$Subgroup2
[1] 81 78 5 76 9 41
$Subgroup3
[1] 23 2 15 43
I can't rely on the closing parenthesis as the last character in the
vector, though the subgroup could be clearly defined without it.
Numbers are obvious to the eye, but are not always separated from one
another consistently. Part of the reason for this exercise is to
check tha...
2010 Jan 10
0
ordering of additional columns in forest plot in meta package
...labels 'author et al, year'
event <- round(rnorm(nr.studies,10,5),0) # random event nrs
event[event<0]<-0 # to avoid a negative value error
n <- round(rnorm(nr.studies,100,25),0) # random totals
mydata <- data.frame(cbind(lbls,rnd.subgroup1,rnd.subgroup2,rnd.subgroup3,event,n))
mydata
a <- metaprop(event,n,studlab=lbls)
a$rnd.subgroup1 <- addvar(a,mydata,"rnd.subgroup1",by.y="lbls")
a$rnd.subgroup2 <- addvar(a,mydata,"rnd.subgroup2",by.y="lbls")
grid.newpage()
forest(a,
studlab=lbls,
comb.fixed=T,comb.random...