Hey! I am currently using a package called humboldt (GitHub - jasonleebrown/humboldt: Welcome to the offical webpage for the R-package ‘humboldt’) in order to reduce the the climate factors, that affect some animal species. I wrote the following:
reduc.vars<- humboldt.top.env(env1=env1,env2=env2,sp1=sp1,sp2=sp2,rarefy.dist=50, rarefy.units="km", env.reso=0.416669,learning.rt1=0.01,learning.rt2=0.01,e.var=(4:17),pa.ratio=4,steps1=50,steps2=50,method="contrib",contrib.greater=5)
When I try to run the last command I end up with the following error message:
Error in gbm.fit(x = x, y = y, offset = offset, distribution = distribution, :
The data set is too small or the subsampling rate is too large:
nTrain * bag.fraction <= n.minobsinnode
If any of you guys can help i'd bre grateful!!!