[R] Approximate a f(x,y)
Liaw, Andy
andy_liaw at merck.com
Wed Sep 29 17:09:23 CEST 2004
The `akima' package on CRAN probably would help.
HTH,
Andy
> From: Naji
>
> Hi all,
>
>
> Running simulations, I'm generating market response to 2 factors X&Y..
> There is no closed form for the market response.. The results
> are store in a
> matrix Z(X <- seq(.02,.98,.02), Y <- seq(.01,.19,.01))..
> For optmization purpose I need to approximate the values for
> any factor X in
> 0,02-0,98 and Y in 0,01-0,19
>
> How can I do it ?
>
> For one factor : Xn-1 < x <= Xn
> f(x)=(f(Xn-1)*(x-Xn-1)+f(Xn)*(Xn-x))/(Xn-Xn-1)
> I don't know how to generalize this for two factors..
>
>
> Thanks in Advance
> Naji
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>
More information about the R-help
mailing list