[R] How to extract values after using metabin from the package meta?

Michael Dewey lists at dewey.myzen.co.uk
Thu May 4 21:19:01 CEST 2017


Try using str(the_name_of_your_object) and see if you get any clues as 
to where it is putting them. Sorry I cannot help further but I do not 
use meta myself.

On 04/05/2017 15:29, jan Pierre wrote:
> 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]]
>
> ______________________________________________
> R-help at r-project.org 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.
>
> ---
> This email has been checked for viruses by AVG.
> http://www.avg.com
>

-- 
Michael
http://www.dewey.myzen.co.uk/home.html



More information about the R-help mailing list