Hello,
I’m trying to do a meta-analysis with R. I tried to use the function
metabin from the package meta :
data <- data.frame(matrix(rnorm(40,25), nrow=17, ncol=8))
centres<-c("SVP","NANTES","STRASBOURG","GRENOBLE","ANGERS","TOULON","MARSEILLE","COLMAR","BORDEAUX","RENNES","VALENCE","CAEN","NANCY")
rownames(data) = centres
colnames(data) =
c("case_exposed","witness_exposed","case_nonexposed","witness_nonexposed","exposed","nonexposed","case","witness")
metabin( data$case_exposed, data$case, data$witness_exposed, data$witness,
studlab=centres,
data=data, sm="OR")
where data_meta is a data frame with the number of case_exposed, case_data,
witness_exposed, witness for each centre.
I obtain after using metabin :
How can I extract the values of OR and 95%-CI in the fixed effect model and
the random effects model? I want to put these data in another array.
I tried to use summary, but it doesn’t change anything.
Thanks for your help.
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.