I'm developing a Jamovi module for Network Meta-analysis (NMA). I'm using netmeta package to coding some functions for my module.
One of the functions that I will use is pairwise. This function converts a database to the proper format in order to perform NMA.
This function get some columns from a database and create a new database with new columns:
Test <- paste("Newbase <- pairwise(treat = list(",varsT,"), n=list(",varsN,"), event=list(",varsE,"), data=data, studlab=",varsS,", sm=c('",SM,"'))", sep="")
varsT, varsN, varsE, varsS are vectors that store the name columns for each information needed to run the command pairwise.
How do I run the function stored inside Test object?