Closed DanielReid closed 6 years ago
Hello, I'm trying to run the mtc.nodesplit function with a network containing both arm-level and relative effect data. The following error occurs: Error in [.default
(studies, ma) : invalid subscript type 'list'. Could you please advise? Thank you.
the following model params lead to an error:
The cause seems to be that
nodesplit.rewrite.studies
returns a dataframe with no colnames, where subsequent code expects a'study'
colname to exist. Adding a linecolnames(studies) = "study"
near the end seems to fix things but it's probably a good idea to check that function more thoroughly because we think line 53 should always throw an error, given that therbind
operation does not make a list.