I am using the gbm package for generalized boosted regression models, and would like to be able to extract the coefficients produced for storage in a database.
I am already using R to automatically generate formulas that I can export to a database and store. For example, I have been using Dr. Harrell's lrm package to perform logistic regression, e.g.:
output <- lrm(outcome~predictor1+predictor2,data=dataset)
cat(output$coefficients)
Is it possible to do this with gbm? I know gbm gives a number of trees linearly combined by weights but is there any possibility that I get each of the tree printed? Or is it perhaps at least possible to do so in the case where interaction.depth=1 (e.g., no interactions are allowed)?