search for: stat700004

Displaying 20 results from an estimated 25 matches for "stat700004".

2006 Apr 11
1
Help on GARCH calculation
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, stat700004 thanks in advance --------------------------------- [[alternative HTML version deleted]]
2007 Feb 21
3
Omiting repeated values
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 [[alternative HTML version deleted]]
2007 Feb 01
3
Extracting part of date variable
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 new way to find what you're looking for - Yahoo! Answers [[alternative HTML version deleted]]
2007 Oct 03
2
Sample selection problem
I want to get a sample of some arbitrary size from a population having only two values 0 and 1 with replacement, but with different probability for selection. For example 0 will be selected with probability 0.4 and 1 with 0.6. I could use sample function i.e. sample(c(0,1), 30, T) to get this, however here, selection of either 0 or 1 has equal probability here. I am looking for a function which
2006 Jun 15
1
Array
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. Link: http://in.mobile.yahoo.com/new/messenger/ [[alternative HTML version deleted]]
2006 Sep 09
1
How to rotate any plot in R
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 talking about on - Yahoo! Answers India [[alternative HTML version deleted]]
2007 Jan 24
1
Date variable
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. Can anyone tell me where is the mistake? Thanks and
2007 Oct 21
1
Error in if loop
I have created a if loop as follows: name = "e" if (name == "v") { u = 0 } else u = 1 however i am getting error : Error: unexpected 'else' in "else" definitely I can write in : ifelse() form, however I want to write in this way. Can anyone tell me where is my error? thanks in advance --------------------------------- Forgot the famous last
2007 Apr 28
2
Calculating Variance-covariance matrix for a multivariate normal distribution.
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 covariance between any two variables, keeping other fixed. In my decent opinion is I should go for the
2006 Apr 24
2
garch warning
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 along with five "NA", but as per my best knowledge I should get only one
2006 Mar 25
2
Please help on correlation matrix
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 give me any code by which I can automatically assign the names of columns of corr matrix which are
2006 Jun 09
2
Date calculation
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/2006 36571 Now I want to create a for loop like this: date = "5/10/2006" for (i in 1: 8) { if (data[i,1] > date) break }
2006 Aug 26
1
Problem on Histogtam
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 -0.0218366946 0.0048939739 -0.0012212499 0.0032533579 [13] -0.0081533269 -0.0098725606
2006 Apr 20
2
R-Help
Dear r-users, Suppose I have three datasets: Dataset-1: Date x y Jan-1,2005 120 230 Jan-2,2005 123 -125 Jan-3,2005 -110 300 Jan-4,2005 114 -21 Jan-7,2005 11 299 Mar-5,2005 200 311 Dataset-2: Date x y Jan-2,2005 123 -125 Jan-3,2005 -110 300 Jan-4,2005 114 -21
2006 Apr 03
2
head function
hi all can anyone tell me what is head() function in r. what is it's utility? thanks in advance --------------------------------- [[alternative HTML version deleted]]
2006 Apr 21
0
Need R-help
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 only. If anyone tell me why I got this message it will be a great
2006 Aug 30
1
How to put title Vertically
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, axes=F,xlim=c(max(pauto.cor), min(pauto.cor)), space=0, col="green4",border="green",horiz=T) #This plots
2007 Jan 30
2
Finding the Min.
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 1.973322e-09 10 1.983202e-09 I want to see at which row minimum value of the
2008 Feb 17
1
Error massage in attaching package 'rgl'
Hi, I am getting following error message while attaching 'rgl' package : > library(rgl) Error in get(Info[i, 1], envir = env) : internal error in R_decompress1 Can anyone tell me what should I do here? Regards, --------------------------------- 5, 50, 500, 5000 - Store N number of mails in your inbox. Click here. [[alternative HTML version deleted]]
2006 Nov 01
1
Optimization and garch
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 working. I tried to write my own code for optimization using Quasi-Newton