I want to perform a network meta analysis with studies containing multiple and single treatment arms.
Here is my data structure:
data.frame':    85 obs. of  5 variables:
 $ TE     : num  -0.758 -0.695 -0.288 -0.511 -0.288 ...
 $ seTE   : num  0.6191 0.2667 0.0341 0.0758 0.1178 ...
 $ treat1 : Factor w/ 31 levels "Boil_promo","Chem",..: 6 26 26 18 9 9 3 9 16 26 ...
 $ treat2 : Factor w/ 3 levels "Act","Pa","Pb": 2 2 2 2 2 3 3 2 2 2 ...
 $ studlab: Factor w/ 63 levels "Altmann2018",..: 1 2 3 4 5 6 7 8 8 9 ...
I have 4 studies with 2 treatment arms, 5 with 3 treatment arms, and 2 with 4 treatment arms. There are three types of control: Passive, Active and Placebo controls There are 31 treatment types in total.
After running the code below:
m.netmeta <- netmeta(TE = TE,
                     seTE = seTE,
                     treat1 = treat1,
                     treat2 = treat2,
                     studlab = paste(net.meta$studlab),
                     data = net.meta,
                     sm = "RR",
                     comb.fixed = TRUE,
                     comb.random = FALSE,
                     reference = "Pa",
                     details.chkmultiarm = TRUE,
                     sep.trts = " vs ")
I got this error:
Error: The following studies have a wrong number of comparisons: 'Brown2008', 'Crump2005', 'Ecrumen2015', 'Francis2016', 'Luby2004', 'Opryszko2010', 'Reller2003', 'Sinharoy2017'
  Please provide data for all treatment comparisons (two-arm: 1; three-arm: 3; four-arm: 6, ...).
Does anyone know how I can deal with this?
 
     
    