Re: [R] meta-analysis, outcome = OR associated with a continuous independent variable

2012-04-05 Thread MP . Sylvestre
For some reason I was under the false impression that these packages were made for meta-analyses of RCT-like studies in which two groups are compared. I am glad to see that I was wrong and that I can use one of these packages. All studies reported using the same units for the exposure so the

Re: [R] using metafor for meta-analysis of before-after studies

2012-04-05 Thread MP . Sylvestre
Many thanks to both of you for the helpful responses to my post. The outcomes are all measured with the same units and I can indeed calculate the sampling variance from the 2 SDs I get from each study. MP Le , "Viechtbauer Wolfgang (STAT)" a écrit : > To add to Michael's response: > Ther

[R] using metafor for meta-analysis of before-after studies

2012-04-04 Thread MP . Sylvestre
Greetings, I wish to conduct a meta-analysis for which the outcome is a continuous variable measured on the same individuals before and after an intervention. Hence, the comparison is not made between two groups, but within groups, at diffrent times. Each study reports the mean outcome and S

[R] subsets, %in%

2010-11-05 Thread MP . Sylvestre
Hi, I have a question about %in% and subsettin data frames. Say I need to keep ID 1,2,4,5, 10 from the data frame dat. I can do: dat <- data.frame(ID = 1:10, var = 1:10) someID <- c(1,2,4,5,10) subset(dat, dat$ID %in% someID) Is there a quick way to do the opposite, ie to do a subset that conta