I want to check the sensitivity of the calculation for a value of 4 parameters. For this, I want to change one parameter at a time, i.e. Change variable 1, hold variables 2-4 at the default value (for example, 1). I thought that a simple way to organize these values ββwould be in data.frame (), where each column corresponds to a different variable, and each row to a set of parameters for which the calculation should be performed. Then I scrolled through each row of the data frame, evaluating the function given by the parameter values ββin that row.
It seems like it should be simple, but I cannot find a quick way to do this.
The problem may be my general approach to sensitivity analysis programming, but I cannot come up with a good and easy way to program the above data.frame.
My code for generating data.frame:
Adj_vals <- c(seq(0, 1, by=0.1), seq(1.1, 2, by=0.1))
This code creates the desired data file. Is there an easier way to achieve the same result? I would accept the answer, where sd_Adj takes 0 instead of 0.01 .
rbatt source share