dmphillippo / multinma

Network meta-analysis of individual and aggregate data in Stan
https://dmphillippo.github.io/multinma
35 stars 17 forks source link

tidyr 1.2.0 breaks ordered multinomial models #12

Closed dmphillippo closed 2 years ago

dmphillippo commented 2 years ago

@ndunnewind notes that tidyr v1.2.0 breaks ordered multinomial models (#11).

When some studies do not report all categories (i.e. some multinomial category outcomes are NA), the nma() call fails with error Stan does not support NA (in agd_arm_r) in data.

This is due to tidyr::replace_na() no longer working on matrices.