An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20080922/c1462645/attachment.pl>
gbm error
2 messages · Darin Brooks, jtf2076
Darrin, what version of R are you using have the same question. I have been using the gbm package without problem with R 2.7.1. but I recently switched computers and downloaded 2.7.2. I used the following code, which works fine on my old computer with 2.7.1 but I get an error with the new version.
fin.tc5.lr01 <- gbm.step(data=fin,
+ gbm.x = 7:14, + gbm.y = 24, + family = "bernoulli", + tree.complexity = 5, + learning.rate = 0.01, + bag.fraction = 0.5) Error: could not find function "gbm.step"
Darin Brooks wrote:
Good afternoon
Has anyone tried using Dr. Elith's BRT script? I cannot seem to run
gbm.step from the installed gbm package. Is it something external to
gbm?
When I run the script itself
<- gbm.step(data=model.data,
gbm.x = colx:coly,
gbm.y = colz,
family = "bernoulli",
tree.complexity = 5,
learning.rate = 0.01,
bag.fraction = 0.5)
... I keep encountering the same error:
ERROR:
unexpected ')' in "bag.fraction = 0.5)"
I've tried all sorts of variations (such as)
sep22BRT.lr01 <- gbm{data=sep22BRT,
gbm.x = sep22BRT[,3:42],
gbm.y = sep22BRT[,1],
family = "bernoulli",
tree.complexity = 5,
learning.rate = 0.01,
bag.fraction = 0.5}
and cannot find the problem.
Is there a glaring error that I am overlooking?
Darin Brooks
Geomatics/GIS/Remote Sensing Coordinator
Kim Forest Management Ltd. Cranbrook Office
Cranbrook, BC
[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
View this message in context: http://www.nabble.com/gbm-error-tp19614927p19628403.html Sent from the R help mailing list archive at Nabble.com.