Sensitivity analysis in R

I have a data.frame with one of the resulting vectors (my_data$sum) depending on a few inputs/variables. I want to do a simple OAT sensitivity analysis based on a range of inputs (similar to doing a what-if/data table analysis in excel).

What is the easiest way to achieve this in R?

Let's say I have a range of inputs manipulating the relevant inputs (A_input and B_input):
A_input_range <- seq(1,50,by=2)
B_input_range <- seq(5,100,by=5)

and I want to analyze the sensitivity of these variables on the output, being
output <- sum(my_data$sum)

How can build the excel-type data table and plot the results (maybe as a 3D map in the folllowing fashion):

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.