Skip to content
Prev 1777 / 5636 Next

[R-meta] May I ask a question about how to extract specific values from summary(netmeta) output?

Am 27.09.19 um 17:26 schrieb Yan LUO:
Dear Yan,

You do not directly find the odds ratios in an R object created with 
netmeta() as the log odds ratio is stored. Furthermore, instead of only 
containing comparisons with the reference treatment, all network 
estimates are stored in the list elements 'TE.fixed' and 'TE.random'.

These matrices contain the network estimates comparing the treatment in 
the row with the treatment in the column. For a netmeta object net1, for 
example, you can extract the log odds ratio of treatment comparisons 
with the reference treatment using the following commands:
net1$TE.fixed[, net1$reference.group]
net1$TE.random[, net1$reference.group]

Similar matrices are stored in a netmeta object containing the standard 
errors, lower and upper confidence limits as well as z- and p-values 
(see help page of netmeta).

Concerning a scatter plot of an efficacy and safety outcome, I wrote 
some R code (see attached file) which does the job. This will probably 
be the basis for a new plotting function in R package *netmeta* to 
easily create such scatter plots.
The number of randomized patients per treatment is stored in list 
element 'n.trts' which can be used to determine the node size in a 
network graph. E.g.,

example(smokingcessation)
netgraph(net1, plastic = FALSE, points = TRUE, adj = 0.5,
 ???????? cex.points = 15 * sqrt(n.trts / max(n.trts)))

Best wishes, Guido

P.S. Some additional remarks:

- R function netleague() can be used to create a league table for an 
efficacy and safety outcome. E.g., netleague(net.efficacy, net.safety)

- R functions netbind() and forest.netbind() can be used to combine / 
bind results of several networks and to generate a corresponding forest plot

- R functions netposet() and plot.netposet() can be used to generate a 
scatter plot of P-scores for two outcomes (to partially order / rank 
treatments based on two outcomes)