[R] About performance of R

2015-05-27 Thread Suman
Hi there, Now that R has grown up with a vibrant community. It's no 1 statistical package used by scientists. It's graphics capabilities are amazing. Now it's time to provide native support in "R core" for distributed and parallel computing for high performance in massive datasets. And may be ba

Re: [R] how to plot hazard function for coxph model?

2012-07-27 Thread Suman Pramanik
erday. Plotting hazard is just like plotting density function. muhaz package has got the routines for doing the same. Thanks a Lot for replying. Suman On 27 July 2012 14:02, David Winsemius [via R] wrote: > > On Jul 26, 2012, at 9:00 AM, suman kumar wrote: > >> Dear all, >> >

[R] code coverter r to C

2012-07-26 Thread suman kumar
Hi all, is there a package for converting R code into C code? Thanks. Suman -- View this message in context: http://r.789695.n4.nabble.com/code-coverter-r-to-C-tp4637999.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

Re: [R] SSEc and SSEr

2012-07-26 Thread suman kumar
You can make different lm objects by adding all predictors and compare them with anova(lm1,lm2,lm3...). See if p value is not significant, the more complex model is not appropriate. Dr Suman Kumar -- View this message in context: http://r.789695.n4.nabble.com/SSEc-and-SSEr-tp4637855p4637963

Re: [R] Working with Numbers generated from Regression Output

2012-07-26 Thread suman kumar
Check str(lmobj). You can see the underlying structure of lm object. It is actually a list. You can access its individual components with $ operator. Bye -- View this message in context: http://r.789695.n4.nabble.com/Working-with-Numbers-generated-from-Regression-Output-tp4637919p4637957.htm

[R] how to plot hazard function for coxph model?

2012-07-26 Thread suman kumar
Dear all, I have been trying to plot hazard function in R for survival data, but in vain. Can anybody help me out in plotting hazard function in R? Dr Suman Kumar -- View this message in context: http://r.789695.n4.nabble.com/how-to-plot-hazard-function-for-coxph-model-tp4637953.html Sent

[R] reply: help with loop

2012-07-24 Thread Suman Pramanik
Check the following code, it should work and solve your problem. # function is.err returns 1 if criteria for erroneous entry are met, else returns 0 for each district. is.err <- function(df) { # df = data frame with entries for 1 district with(df, { C <- C[!is.na(C)]# C is the counts with a

[R] (no subject)

2012-07-20 Thread Suman Pramanik
Dear Sir, I am using timereg package for analysing competing risk data. There are two options in method: proportional and additive. How to choose among the methods for analysis and how to check which of the methods are appropiate for the specific data. Tanks a lot. Dr Suman Kumar

[R] help required for GO Annotation problem

2011-06-28 Thread suman pal
Hello, I basically want to use R-help, and post some problems which I am facing. The Ref is a well known Genome Biology paper "Bioconductor: open software development for computational biology and bioinformatics" by Robert C Gentleman et al., 2004. Generating Heatmaps till Fig2 is working so I t

[R] [R-pkgs] [R-package] PredictABEL 1.1: Assessment of risk prediction models in R

2011-04-07 Thread Suman Kundu
paper [1] and on PredictABEL website http://www.genabel.org/packages/PredictABEL   Hope you'll find it useful! Suman Kundu --- References: [1] http://www.ncbi.nlm.nih.gov/pubmed/21431839 [[alternative HTML version deleted]]

[R] Moving average in R

2010-08-15 Thread suman dhara
Hi, I want to fit moving average trend in R. In google, I see that it is in the package 'TTR'. But, I can't install this package. I have used the following code: >install.packages("TTR") But, it says there is no package called 'TTR'. C

[R] Option pricing models

2010-07-20 Thread Suman Narayan
R. I request you to help me in this regard. Thanks, ~Suman __ R-help@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,

[R] installing multicore package

2010-06-25 Thread suman dhara
Sir, I want to apply mclapply() function for my analysis. So, I have to install multicore package. But I can not install the package. >install.packages("multicore") It gives that package multicore is not available. Can you help me? Regards, Suman Dhara [[alternative

[R] calculating using user provided function

2010-06-23 Thread suman dhara
work. Regards, Suman Dhara [[alternative HTML version deleted]] __ R-help@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 comm

[R] double integral

2010-06-18 Thread suman dhara
Sir, I want to calculate double integral in R. Is there any function to do this? Regards, Suman Dhara [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] simulating data from a multivariate dist

2010-06-17 Thread suman dhara
.mv$best.model) It fits asymmetic student-t dist. to the data 'indices'. Now, I want to simulate data from this best fitted distribution. I use simulate(aic.mv$best.model). But, it is not working. Can you give me the funtion/code to simulate data from this best fitted distribution. Th

[R] generating samples from multivariate distributions

2010-06-16 Thread suman dhara
Sir, I want to draw random from any multivariate disrtibution. Is there any function in R to do this? Regards, Suman Dhara [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] Exporting multiple plots

2010-06-16 Thread suman dhara
Sir, I want to export 10, say graphs using 'for' loop. What will be the command and format for exporting multiple plots. Regards, Suman Dhara [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://st

[R] random colour

2010-06-14 Thread suman dhara
Sir, I want to plot 5 curve on a single graph. I want to give random colour on it. How can I do this? Regards, Suman Dhara [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] drawing curve

2010-06-10 Thread suman dhara
Sir, I have a problem regarding drawing curve.I pose the problem as follows: suppose I have two vectors: x<-c(1:6) y<-c(.01,.09,.08,.03,.001,.02) plot(x,y) It gives me the plotted points.But I want to draw a smooth curve passing througt these points. How can I do this? Thanks & Rega

[R] To give column names of a data-frame

2010-06-10 Thread suman dhara
t;) But, it does not work. Can you help me? Regards, Suman Dhara [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/p

[R] for loop incremented by 0.01

2010-06-09 Thread suman dhara
Sir, I want to use a for loop which will be incremented by 0.01 in 0 to 1. Please help. Regards, Suman Dhara [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] VaR using monte carlo simulation

2010-06-09 Thread suman dhara
Sir, I want to calculate VaR (Value at Risk) using Monte Carlo Simulation in R.Is there any function in R to calculate Var ?. Can you give me an eaxmple. Thanks & Regards, Suman Dhara [[alternative HTML version deleted]] __ R-he

[R] fitting multinomial logistic regression

2010-06-06 Thread suman dhara
Sir, I want to fit a multinomial logistic regression in R.I think mlogit() is the function for doing this. mlogit () is in packege globaltest.But, I can not install this package. I use the following: install.packages("globaltest") Can you help me? Regards, Suman Dhara [[a

[R] exporting the whole output

2010-06-05 Thread suman dhara
Sir, I want to export the whole result generated by lda function.I have used the following R-code.But, it is not working.Can you help me? a<-lda(y~.,data=data) write.table(a,file="G:/a.csv",sep=",") Regards, Suman Dhara [[alternati

[R] Prediction in discriminant analysis

2010-06-04 Thread suman dhara
there any formula for doing this? or how can I do this? Regards, Suman Dhara [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[R] parttioning a matrix corresponding to different levels of y

2010-06-03 Thread suman dhara
submatrices say x1,x2,x3 corresponding to each level of y.Is there any function to do this in R or how can I do this in R? For your convinience I attach a sample version of data. Thanks, Suman Dhara __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] 3dimensional array in r

2010-06-02 Thread suman dhara
Sir, I want to use a 3-dimensional array in R. How can I initialize the array? Can you give me a eaxmple? Thanks & Regards, Suman Dhara [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mai

[R] discriminant analysis

2010-06-01 Thread suman dhara
Sir, Can you suggest some function for discriminant analysis for Binary response having continuous as well as categorical regressors. Thanks, Suman Dhara [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] n-dimensional vector plot

2010-05-31 Thread suman dhara
Sir, I have n p-dimensional regressor vectors corresponding to n responses. I want to plot n regressor vectors in R. Is it possible to plot them in R? If yes, please send me the code. Thanks, Suman Dhara [[alternative HTML version deleted

[R] getting the column name of a data frame

2010-05-31 Thread suman dhara
Sir, I want to store the column name of a data frame as a vector and use the vector to remove a column of the data frame ,if required. Thanks, Suman Dhara [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https

[R] Removing columns from data frame referenced by column index

2010-05-31 Thread suman dhara
Can you suggest me any way to remove a column of a data frame by the column number,not by the column name. Thanks, Suman Dhara [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

[R] Import SPSS file to R

2009-10-19 Thread Suman Kundu
Hello,   In R, How to read SPSS file and access the data item? Thank you. Regards, Suman Kundu [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] Unix commands on R

2009-07-08 Thread suman Duvvuru
I am using R on unix. While in R how do I execute the unix shell commands? Is there a way to do it? I am executing a function in R and the matrix resulting from the function has to be passed on as an input to unix command. Any directions will be helpful. Thanks, Suman [[alternative

Re: [R] Need help understanding output from aov and from anova

2009-06-04 Thread Suman Sundaresh
0 0 Residuals 2 0 0 > anova(lm(vtot~fac))[1,5] [1] NaN > Best, Suman. On Wed, Jun 3, 2009 at 9:24 PM, Steven McKinney wrote: > Hi Suman, > > What version of R are you running? > > In R 2.9.0 running your first example yields a warning > >  Warnin

[R] Need help understanding output from aov and from anova

2009-06-03 Thread Suman Sundaresh
very strange. Please could someone shed some light on what I may be missing here? Thanks very much. Suman. __ R-help@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-g

[R] lsmeans in R

2009-03-10 Thread suman Duvvuru
I tried to use it but could not figure out which option to use to get means. If anyone can give an example of how to get lsmeans using lm object, that will very helpful. Thanks, SUman [[alternative HTML version deleted]] __ R-help@r-project.o

[R] Conversion - lowercase to Uppercase letters

2008-08-19 Thread suman Duvvuru
I would like to know how to convert a string with characters to all uppercase or all lowercase? If anyone could let me know if there exists a function in R for the conversion, that will be very helpful. Regards, Suman [[alternative HTML version deleted

[R] correlation matrix - large dataset

2008-01-08 Thread suman Duvvuru
, please help me out. Please feel free to share your memory handling techniques in R. Thanks, Suman [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide