search for: study2

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

Did you mean: study
2011 Apr 28
1
Extract complete rows by group and maximum
Hi I'm trying to extract complete rows from a dataframe by group based on the maximum in a column within that group. Thus I have a dataframe: cvd_basestudy ... es_time ... _____________ study1 ... 0.3091667 study2 ... 0.3091667 study2 ... 0.2625000 study3 ... 0.3033333 study3 ... 0.2625000 __________ etc I can extract the basestudy and the max(es_time) using ddply ddply(datares_sinus_variable, .(cvd_basestudy), function(x){max(x[['es_time']])}) or by by(datares_sinus_vari...
2002 Jul 26
0
manipulating the result of by()
...the tables within the level of one of the grouping variables, eg age class. How can I do? Here is an example: ttt <- by(data,list=c(age,sex,region,edu),FUN=function(x) { tto <- table(x$smoke[x$grp=="study1"]) so <- sum(tto) tte <- prop.table(table(x$smoke[x$grp=="study2"]))*so ttt <- rbind(tto,tte) ttt } Think of age as a factor with 4 levels (age category). Now a want to sum each table (observed=tto and expected=tte separately) within each age category. I should end with 4 table with 2 rows (obs & exp) and 3 columns (the smoke levels). Any hint?...
2012 Sep 07
2
metafor package: study level variation
Hello. A quick question about incorporating variation due to study in the metafor package. I'm working with a particular data set for meta-analysis where some studies have multiple measurements. Others do not. So, let's say the effect I'm looking at is response to two different kinds of drug treatment - let's call their effect sizes T1 and T2. Some studies have multiple