I have the following issue when trying to use the nlm() function in R to find optimal values for a_o & b_o.
I have X : a table with 10k + rows and with 6 columns
Some columns of X are variables in the function I want to minimize. It's an MSE function.
f <- function(X, a_o, b_o)
{
((X$Td) - (((b_o*((a_o*X$T)/(b_o+X$T)) + log(X$U/100))/(a_o-((a_o*X$T)/(b_o+X$T)) + log(X$U/100)))))^2
}
nlm(f, input, a_o=c(-1000,1000), b_o=c(-1000,1000))
I have this error message when I try to run it :
Error in Ops.Date(left, right) : / not defined for "Date" objects`
Input sample : https://image.noelshack.com/fichiers/2019/47/7/1574604926-sample.png