[R] Calculating Variance-covariance matrix for a multivariate normal distribution.

2007-04-28 Thread stat stat
Dear all R users, I wanted to calculated a sample Variance covariance matrix of a five-variate normal distribution. However I stuck to calculate each element of that matrix. My question is should I calculate ordinary variance and covariances, taking pairwise variables? or I should take partial

[R] Omiting repeated values

2007-02-21 Thread stat stat
Dear all R users, Is there any function to omit repeated values in a vector? Your help will be highly appreciated. Thanks stat - Here’s a new way to find what you're looking for - Yahoo! Answers

[R] Extracting part of date variable

2007-02-01 Thread stat stat
Dear all, Suppose I have a date variable: c = 99/05/12 I want to extract the parts of this date like month number, year and day. I can do it in SPSS. Is it possible to do this in R as well? Rgd, - Here’s a

[R] Finding the Min.

2007-01-30 Thread stat stat
Dear all R users, Suppose I have a dataset like that, data = 1 1.957759e-09 2 1.963619e-09 3 1.962807e-09 4 1.973951e-09 5 1.983401e-09 6 1.990894e-09 7 2.000935e-09 8 1.998391e-09 9

[R] Date variable

2007-01-24 Thread stat stat
Dear R users, I did following with a date variable library(date) date = 03/11/05 date = as.Date(date, format=%m/%d/%y) date [1] 2005-03-11 s = vector(length=3) s[1] = date s[1] [1] 12853 But here I got s[1] as 12853. But this is not that I want. I need s[1] as original date.

[R] Optimization and garch

2006-11-01 Thread stat stat
Good day, Here I was trying to write a code for Garch(1,1) . As garch problem is more or less an optimization problem I also tried to get the algorithm for nlminb function. What I saw that if use this function 'nlminb I can easyly get the estimate of parameters. But any other function is not

[R] How to rotate any plot in R

2006-09-09 Thread stat stat
Dear all R users, I am wondering whether it is possible in R to rotate any plot like Histogram, scatter plot, correlogram etc along with their legend, comments etc. Thanks and regrads, stat - Find out what India is

[R] How to put title Vertically

2006-08-30 Thread stat stat
Dear all R users, Suppose, Dear all R users, Suppose, pauto.cor = pacf(lh, plot=F) max.lag = max(pauto.cor$lag) min.lag = min(pauto.cor$lag) centre = (max.lag - min.lag)/2 pauto.cor = pauto.cor$acf pauto.cor = pauto.cor[-1] par(mar=c(3,0,1,1)) barplot(pauto.cor,

[R] Problem on Histogtam

2006-08-26 Thread stat stat
Dear all, May be question seems trivial for most of the R users, but really at least for me, this comes out to be very problematic. Suppose I have the following data: r [1] -0.0008179960 -0.0277968529 -0.0105731583 -0.0254050262 0.0321847131 0.0328170674 [7] 0.0431894392 -0.0217614918

[R] Array

2006-06-15 Thread stat stat
Dear all R users, I am wondering if there is any way to define a 3 dimentional or 4 dimentional array in R. Sincerely yours, thanks in advance Send instant messages to your online friends http://in.messenger.yahoo.com Stay connected with your friends even when away from PC.

[R] Date calculation

2006-06-09 Thread stat stat
Dear all R users, Suppose I have a data frame data like this: 5/2/2006 36560 5/3/2006 36538 5/4/2006 36452 5/5/2006 36510 5/8/2006 36485 5/9/2006 36502 5/10/2006 36584 5/11/200636571 Now I want to create a for loop like this: date =

[R] Edit function

2006-06-07 Thread stat stat
Dear all R users, I have a query on Edit function. Suppose I have a data frame named data. I can use EDIT function to see the materials contained in data, by using the command: edit(data) But when I close the window then again the materials contained in data is displayed in

[R] garch warning

2006-04-23 Thread stat stat
Dear r users, Few days ago I posted the same topic but unable to receive any suggestion. So I am asking this same question. I was trying to fit a garch(1,1) model to my dataset. But while executing I got a warning message NaNs produced in: sqrt(pred$e). And got the estimated sd's

[R] Need R-help

2006-04-21 Thread stat stat
Dear r users, I was trying to fit a garch(1,1) model to my dataset. But while executing I got a warning message NaNs produced in: sqrt(pred$e). And got the estimated sd's along with five NA, but as per my best knowledge I should get only one NA i.e. corresponding to the first observation

[R] Need R code

2006-04-20 Thread stat stat
Dear r-users, Suppose I have three datasets: Dataset-1: Date x y Jan-1,2005120 230 Jan-2,2005123 -125 Jan-3,2005-110 300 Jan-4,2005114 -21 Jan-7,200511299 Mar-5,2005200 311 Dataset-2: Date

[R] R-Help

2006-04-20 Thread stat stat
Dear r-users, Suppose I have three datasets: Dataset-1: Date x y Jan-1,2005120 230 Jan-2,2005123 -125 Jan-3,2005-110 300 Jan-4,2005114 -21 Jan-7,200511299 Mar-5,2005200 311 Dataset-2: Date

[R] Help on GARCH calculation

2006-04-11 Thread stat stat
Dear R-users, I am wondering if anyone can tell me how Garch coefficients are calculated in R. What is algorithm for that? If anyone give me a detail desceiption I will be very grateful. Thanks and Regards, stat74 thanks in advance

[R] head function

2006-04-02 Thread stat stat
hi all can anyone tell me what is head() function in r. what is it's utility? thanks in advance - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing

[R] S3 object

2006-03-28 Thread stat stat
hi all, Somewhere I got a phrase - the function returns a S3 object of class hclust - can anyone tell me what is S3 objects? thanks in advance - [[alternative HTML version deleted]]

[R] Please help on correlation matrix

2006-03-25 Thread stat stat
hi everyone, Suppose I have three variables a, b, and c each with 10 values. Now I construct a corr matrix for them. Now I want to give the names of columns of corr matrix as a, b, c, i.e. the first column of corr matrix will have name as ‘a’ second column with ‘b’ and so on. Can anyone