CRSU-Apps/MetaInsight

Make ranking panel instantly interactive to rank direction option

Opened this issue · 0 comments

Currently, if one runs a Bayesian analysis and is looking at the rank panel, if they then want to change the rank direction (i.e. is a large outcome good or bad), the user has to re-run the Bayesian analysis (see below).

MetaInsight/server.R

Lines 633 to 641 in a5b3e70

RankingData <- eventReactive(input$baye_do, {
obtain_rank_data(sub=TRUE, data(), input$metaoutcome, input$exclusionbox,
treatment_list(), model(), input$rankopts)
})
RankingData_sub <- eventReactive(input$sub_do, {
obtain_rank_data(sub=FALSE, data(), input$metaoutcome, input$exclusionbox,
treatment_list(), model_sub(), input$rankopts)
})

Would be ideal if this was instant, rather than having to re-run the Bayesian analysis (the rank direction doesn't effect the model calculation). However, with the current set-up, if the rank direction option was freely changeable, so would the random/fixed effects option and excluded studies option, therefore leaving it open to a mess (some elements of the rank page outputs would update but the model underneath wouldn't).