I am trying to use the nnet function in R to approximate the function of two variables y (a, b). Both variables, “a” and “b, are known at fixed points:
a={a(1),a(2),...,a(i),...a(n)} and b={b(1),b(2),...,b(i),...b(n)}.
The value of the function "y" is known for each pair a (i), b (i), i.e.
y(a,b)={y(a(1),b(1)),y(a(2),b(2),...y(a(i),b(i),...y(a(n),b(n)}.
I do
res=nnet(y~a+b,size=X,maxit=M,linout=TRUE),
where X and M. are defined
How to get the result value between points, for example, with some a-value that is between the values (i) and a (i + 1) and b, which is between b (j) and b (j + 1)?