@AugustT
MSI function is currently not compatible with the data structure for bma functions. I can convert it as follows
msi_data <- data_in
msi_data$species <- as.factor(as.character(msi_data$species))
msi_data$index <- 10^(msi_data$index) # puts the data on the measurement scale
msi_data$se <- msi_data$index * msi_data$se # delta method - the function actually does the reverse
But it would be better if all the functions accepted data in the same format. Either a wrapper function would do this conversion so that the published version of the MSI function would still be accessible OR allow input options within the function.
@AugustT MSI function is currently not compatible with the data structure for bma functions. I can convert it as follows
msi_data <- data_in msi_data$species <- as.factor(as.character(msi_data$species)) msi_data$index <- 10^(msi_data$index) # puts the data on the measurement scale msi_data$se <- msi_data$index * msi_data$se # delta method - the function actually does the reverse
But it would be better if all the functions accepted data in the same format. Either a wrapper function would do this conversion so that the published version of the MSI function would still be accessible OR allow input options within the function.