Hello - and sorry for a possibly stupid question, I'm just starting to
learn rgenoud.
I am defining a function with 5 parameters (p1, p2, p3, p4a, and p4b)
and then want to optimize it using genoud. But I am doing something
wrong.
Before genoud is even able to run it says: Error in p2 + 1.2 :
As a follow up to my original question, I got it to run by
re-specifying my function a bit like this - I made the vector of 5
predictors the argument of my function:
f1 = function(predictors) { # predictors: p1,p2,p3,p4b,p4a
y = 2 + 1.5*predictors[1] +
2 matches
Mail list logo