search for: npredictors

Displaying 1 result from an estimated 1 matches for "npredictors".

Did you mean: predictors
2011 Jan 13
1
setting up a genoud run
...At the same time, I want the value of each of those 5 parameters to be between 0 and 1000. Thanks a lot for your advice! library(rgenoud) f1 = function(p1,p2,p3,p4b,p4a) { y = 2 + 1.5*p1 + 0.3*(p2+1.2+0.6*p4a)-1.2*p3 + 0.9*p4b return(y) } f1(p1=1,p2=2,p3=4,p4b=4,p4a=6) # seems to be working npredictors=5 genoud(f1,nvars=npredictors,max=TRUE,pop.size=1000,max.generations=100,wait.generations=10, hard.generation.limit=TRUE,starting.values=rep(500,npredictors), Domains=matrix(rep(c(0,1000),npredictors),ncol=2,byrow=T),boundary.enforcement=2) -- Dimitri Liakhovitski Ninah Consulting