[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'. Can you help me? Regards, Suman Dhara [[alternative

[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 HTML version deleted

[R] calculating using user provided function

2010-06-23 Thread suman dhara
. 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 commented

[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

[R] simulating data from a multivariate dist

2010-06-17 Thread suman dhara
'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. Thanks Regards, Suman Dhara [[alternative HTML version deleted

[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://stat.ethz.ch

[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] 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] To give column names of a data-frame

2010-06-10 Thread suman dhara
Sir, I want to export the results of R in a data frame. So I want to give rownames,columnnames title to the data-frame.I have applied the following: data.frame(matrix(c(...),nrow=,ncol=),row.names=c(a,b),col.names=c(c,d),title=aaa) But, it does not work. Can you help me? Regards, Suman Dhara

[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 Regards, Suman

[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-help@r

[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] 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 [[alternative HTML

[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 [[alternative HTML version deleted

[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/mailman

[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] 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] 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] 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