Strategy for mapping a function of several inputs and outputs using R -
i want plot function of many inputs , outputs using r study how outputs depend on inputs. function economic model but, simple example, write function as
f <- function(x, y, z) { = x * y^2 return (data.frame(a, b = x + y + z, c = sqrt(a))) } (i used data.frame return several outputs open other suggestions - perhaps should taking data.frame input well?)
now, want plot a function of x when y , z 1, likewise plot c function of y , x , z set 2.
Comments
Post a Comment