[R] How to extract values after using metabin from the package meta?
jan Pierre
jan.pierre0123 at gmail.com
Thu May 4 16:29:10 CEST 2017
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]]
More information about the R-help
mailing list