[R] problem in building an R package

2009-11-24 Thread clue_less
i am trying to build an R package and submit to CRAN. i am using - package.skeleton(name=xxzz, code_files = H:\xxzz.R) to build package xxzz. --- The code above generates 'xxzz' folder. It seems that I have to manually edit the files generated in xxzz folder (to add

[R] which data structure to choose to keep multile objects?

2009-11-07 Thread clue_less
I have a function called nnmf which takes in one matrix and returns two matrices. for example, X [,1] [,2] [,3] [,4] [1,]147 10 [2,]258 11 [3,]369 12 z=nnmf(X,2) z$W [,1] [,2] [1,] 0.8645422 0.6643681 [2,] 1.7411863 0.5377504

[R] how to plot a gains chart in R?

2009-08-21 Thread clue_less
I have 1000 oberved binary reponses Y, and I also have 1000 predictited probabilities predicted_prob (between 0 and 1) for those observed reponses. How can I plot a gain chart in R? Thanks. -- View this message in context:

[R] survival analysis: time-variant covariates, right censored, re-current events

2009-08-21 Thread clue_less
I have a data set for survival analysis in R. The data have time-variant covariates, and right-censored outcomes, which could also be re-current events. What R package should I use? Thanks! -- View this message in context:

[R] ROC curve and gains/lift chart

2009-08-21 Thread clue_less
What is the difference between ROC curve and gains/lift chart? how to do them in R? Thanks. -- View this message in context: http://www.nabble.com/ROC-curve-and-gains-lift-chart-tp25083979p25083979.html Sent from the R help mailing list archive at Nabble.com.

[R] unable to connect to 'cran.r-project.org' on port 80.

2009-08-21 Thread clue_less
I tried to select a mirror site from R, but got the following error - chooseCRANmirror() Warning message: In open.connection(con, r) : unable to connect to 'cran.r-project.org' on port 80. The consequence is that i have to install R-packages by downloading zip files one by one, and then