[R] Can't reproduce ada example

2011-07-07 Thread Bob Flagg
Dear R Users, I'm having trouble reproducing the results in Section 5.1 of Culp, M., Johnson, K., Michailidis, G. (2006). ada: an R Package for Stochastic Boosting Journal of Statistical Software, 16 They build and display a boosting model with the code: library("ada") n <- 12000 p <- 10 set.se

[R] problem with Hmisc

2008-09-03 Thread Bob Flagg
Dear All, I'm reading Frank Harrell's wonderful Regression Modeling Strategies book and ran into a problem following the example in Chapter 8. I'm working on platform: Ubuntu 8.04 (i486-pc-linux-gnu) R version: 2.7.2 (2008-08-25) and my command sequence was: library(chron) libra

Re: [R] exporting adaBoost model

2008-08-18 Thread Bob Flagg
aBoost and > get back the results. Of course, R and Python need be installed on your > machine and you cannot generate a single executable., > > // Hans Werner Borchers > > > Bob Flagg wrote: > > > > Dear all, > > > > I'm using adaBoost from

[R] exporting adaBoost model

2008-08-15 Thread Bob Flagg
Dear all, I'm using adaBoost from the ada package to build a classification model. After training the model in R I'd like to use it in a Python application. Is it possible to export the model in some way to make translating into python easier? Any help would be greatly appreciated. Thanks. Bo

Re: [R] Excluding/removing row and column names on text output files

2008-05-02 Thread Bob Flagg
Steve, I think you can use: write.table(x, file = "/Users/Desktop/Data.txt", sep = "", append=T, row.names = F, col.names = F) I used that for the data PERSHRUB DISTX AGE RODENTSP 166 2100 501 290 914 201 375 1676 341 475 24

Re: [R] writing a function

2008-02-08 Thread Bob Flagg
Anisah, You just need to omit the indices in the return statements: mm<-function(m,n){ #matrix function w<-matrix(nrow=m, ncol=n) for(i in 1:m){ for(j in 1:n){ w[i,j]=i+j } } w } v<-function