Re: [R] Hunting for snow...

2006-07-09 Thread Prof Brian Ripley
On Sat, 8 Jul 2006, Brian Lunergan wrote: Evening folks: I did an install.views of finance and econometrics and between the two of them R reported 'FracSim', 'RDCOMClient', 'snow', 'VGAM', and 'segmented' as missing dependencies. Now, I've managed to hunt down what appear to be current zip

Re: [R] last 2 questions about save and load

2006-07-09 Thread Prof Brian Ripley
On Sat, 8 Jul 2006, [EMAIL PROTECTED] wrote: i played around and i get the hang of save and load. I just have two final questions : 1) is loading the RandomFields package the only way to check if a file ( created through the save function ) is out there or not ? Because, I generally won't

Re: [R] Hunting for snow...

2006-07-09 Thread Brian Lunergan
Prof Brian Ripley wrote: On Sat, 8 Jul 2006, Brian Lunergan wrote: Evening folks: I did an install.views of finance and econometrics and between the two of them R reported 'FracSim', 'RDCOMClient', 'snow', 'VGAM', and 'segmented' as missing dependencies. Now, I've managed to hunt down what

[R] R

2006-07-09 Thread zana adeb
Madame, I've read your answer for using R from Java, you've sais: one is to use R in batch mode ie you create a file in your java code with all the R commands and send it to R (via Process pc=Runtime.getRuntime().exec(Rcall); )and then R creates an outputfile with all the results. My

Re: [R] Hunting for snow...

2006-07-09 Thread Duncan Murdoch
On 7/9/2006 7:39 AM, Brian Lunergan wrote: Prof Brian Ripley wrote: On Sat, 8 Jul 2006, Brian Lunergan wrote: Evening folks: I did an install.views of finance and econometrics and between the two of them R reported 'FracSim', 'RDCOMClient', 'snow', 'VGAM', and 'segmented' as missing

Re: [R] Hunting for snow...

2006-07-09 Thread Uwe Ligges
Brian Lunergan wrote: Prof Brian Ripley wrote: On Sat, 8 Jul 2006, Brian Lunergan wrote: Evening folks: I did an install.views of finance and econometrics and between the two of them R reported 'FracSim', 'RDCOMClient', 'snow', 'VGAM', and 'segmented' as missing dependencies. Now, I've

[R] help on executing JRClient examples

2006-07-09 Thread zana adeb
Dear All, I've installed Rserve and I've met in the bin directory of R and I've runn it and it appears //ready to answer the querie// and i've installed the Jrclient and I've put it on the desktop in the directory Jrclient and i've installed JDK and sur I'have the R language. Now when

Re: [R] Hunting for snow...

2006-07-09 Thread Brian Lunergan
Uwe Ligges wrote: Brian Lunergan wrote: Prof Brian Ripley wrote: On Sat, 8 Jul 2006, Brian Lunergan wrote: Evening folks: I did an install.views of finance and econometrics and between the two of them R reported 'FracSim', 'RDCOMClient', 'snow', 'VGAM', and 'segmented' as missing

Re: [R] Hunting for snow...

2006-07-09 Thread Uwe Ligges
Brian Lunergan wrote: Uwe Ligges wrote: Brian Lunergan wrote: Prof Brian Ripley wrote: On Sat, 8 Jul 2006, Brian Lunergan wrote: Evening folks: I did an install.views of finance and econometrics and between the two of them R reported 'FracSim', 'RDCOMClient', 'snow', 'VGAM', and

[R] KS Test Warning Message

2006-07-09 Thread justin rapp
All, Happy World Cup and Wimbledon. This morning finds me with the first of my many daily questions. I am running a ks.test on residuals obtained from a regression model. I use this code: ks.test(Year5.lm$residuals,pnorm) and obtain this output One-sample Kolmogorov-Smirnov test

Re: [R] Problem with garchFit function in fSeries

2006-07-09 Thread Spencer Graves
Without a self-contained example, it's difficult to say for sure. However, this looks to me like false convergence: garchFit uses a nonlinear iteration to try to maximize the likelihood by minimizing (-log(likelihood)). The matrix of second partial derivatives of (-log(likelihood))

Re: [R] package:Matrix handling of data with identical indices

2006-07-09 Thread Douglas Bates
The apparent contradiction here is again a case of inadequate documentation and checking. Because the order of the triplets in the triplet form of a sparse matrix is essentially random it is permissible to have repeated indices. As you have seen, the interpretation of repeated indices is that

Re: [R] denominator degrees of freedom and F-values in nlme

2006-07-09 Thread Douglas Bates
On 7/8/06, M R Robinson [EMAIL PROTECTED] wrote: Hello, I am struggling to understand how denominator degrees of freedom and subsequent significance testing based upon them works in nlme models. I have a data set of 736 measurements (weight), taken within 3 different age groups, on 497

[R] string problems with \\ (Windows)

2006-07-09 Thread Charles Annis, P.E.
Greetings, R-ians: I'm using R 2.3.1 on WindowsXP. I need to find the name of a file at the end of a sting that contains the path + file, with the problematic \\ as separators. The string looks something like this: C:\\Documents and Settings\\myName\\My Documents\\R

Re: [R] string problems with \\ (Windows)

2006-07-09 Thread Gabor Grothendieck
Try: basename(string.name) On 7/9/06, Charles Annis, P.E. [EMAIL PROTECTED] wrote: Greetings, R-ians: I'm using R 2.3.1 on WindowsXP. I need to find the name of a file at the end of a sting that contains the path + file, with the problematic \\ as separators. The string looks something

Re: [R] string problems with \\ (Windows)

2006-07-09 Thread jim holtman
?basename On 7/9/06, Charles Annis, P.E. [EMAIL PROTECTED] wrote: Greetings, R-ians: I'm using R 2.3.1 on WindowsXP. I need to find the name of a file at the end of a sting that contains the path + file, with the problematic \\ as separators. The string looks something like this:

Re: [R] string problems with \\ (Windows)

2006-07-09 Thread Duncan Murdoch
basename() works. If you're on a system that doesn't think \\ is a path separator, you could do something like x - C:\\Documents and Settings\\myName\\My Documents\\RProjects\\Project1\\file.name.csv basename(gsub('','/',x)) Duncan Murdoch Charles Annis, P.E. wrote: Greetings, R-ians:

[R] distance in kmeans algorithm?

2006-07-09 Thread Arnau Mir
Hello. Is it possible to choose the distance in the kmeans algorithm? I have m vectors of n components and I want to cluster them using kmeans algorithm but I want to use the Mahalanobis distance or another distance. How can I do it in R? If I use kmeans, I have no option to choose the

Re: [R] package:Matrix handling of data with identical indices

2006-07-09 Thread roger koenker
On 7/8/06, Thaden, John J [EMAIL PROTECTED] wrote: As there is nothing inherent in either compressed, sparse, format that would prevent recognition and handling of duplicated index pairs, I'm curious why the dgCMatrix class doesn't also add x values in those instances? why not multiply

Re: [R] distance in kmeans algorithm?

2006-07-09 Thread Prof Brian Ripley
You do realize that Mahalanobis distance is just Euclidean distance on some linear transformation of the variables? So all you need to do is to transform the data you pass to kmeans to 'sphere' the Mahalanobis distance. The K means *algorithms* do depend on Euclidean distance (e.g. in

[R] Choice of repository and outdated vs unusable... was (Hunting for snow...)

2006-07-09 Thread Brian Lunergan
Uwe Ligges wrote: Where did you find them? At least not in their current versions on the official repository on CRAN master for R-2.3.x, I hope. FracSim_0.2.zip http://cran.stat.ucla.edu/bin/windows/contrib/2.3/ RDCOMClient_0.91-0.zip http://www.omegahat.org/R/bin/windows/contrib/R-2.3.0/

Re: [R] package:Matrix handling of data with identical indices

2006-07-09 Thread Thaden, John J
On Sunday, July 09, 2006 12:31 PM, Roger Koenker = RK [EMAIL PROTECTED] wrote RK On 7/8/06, Thaden, John J [EMAIL PROTECTED] wrote: JT As there is nothing inherent in either compressed, sparse, JT format that would prevent recognition and handling of JT duplicated index pairs, I'm

[R] Error Calculating Mean

2006-07-09 Thread justin rapp
I have a vector containing players' weights. When I enter mode(data.linear$Weight) numeric is returned. When I type mean(data.linear$Weight) NA is returned. Any ideas as to why this may be the case? I am trying to calculate this ultimately so I can superimpose a normal density line over a

Re: [R] Error Calculating Mean

2006-07-09 Thread Mike Nielsen
I'd hazard a guess that data.linear$Weight may have a Not Available data point (ie. missing data). f - c(NA,rnorm(10)) mode(f) [1] numeric mean(f) [1] NA If you'd like to compute the mean anyway, you can use mean(f,na.rm=TRUE) [1] 0.3433036 On 7/9/06, justin rapp [EMAIL PROTECTED] wrote:

Re: [R] package:Matrix handling of data with identical indices

2006-07-09 Thread Thaden, John J
Thanks. I see in the UMFPACK manual that the convention for csc matrices for monotonic-increasing row indices is as you say. I notice UMFPACK flags errors liberally. What if Matrix or some other package were made to interface with UMFPACK directly, to tap these and other features? -John Thaden

[R] R vs. other software? (was: Software for Epidmiological, Longitudinal Data)

2006-07-09 Thread Spencer Graves
There have been numerous discussions on this listserve of the comparative advantages of R vs. SAS, for example, and various benchmark studies have been published. If you haven't already tried Google, I encourage you to do so. PRIMARY STRENGTHS OF R From my perspective, R

[R] How to get R to ignore certain values when analyzing a column in a data table ?

2006-07-09 Thread Daryl Manning
Apologies if this is in (one of the many) manuals somewhere... Trying to switch to R from other stats programs. Basically, I have a large data table I've dumped from a DB, some of the values which are nulls '-' which I've converted to zeros. I've read it in using read.table fine. I want R

[R] problem in my code

2006-07-09 Thread Taka Matzmoto
Dear R-users I wrote a small program for assigning a membership Here is my script sample.size - 60 x - rnorm(sample.size, 0, 1) y - rnorm(sample.size, 0, 1) x.mean - mean(x) y.mean - mean(y) membership - numeric(sample.size) for (i in 1:sample.size) { if ((x[i] x.mean) (y[i]

Re: [R] problem in my code

2006-07-09 Thread W. Yamamoto
Hi, How about replacing all - with -? That error occured in membership[i] - 1 this line and this code stopped before cbind(x,y,membership) this line. Hope this may help you. --- W. Yamamoto Dear R-users I wrote a small program for assigning a membership Here is my

[R] about overdispersed poisson model

2006-07-09 Thread g0354502
Dear R users I have been looking for functions that can deal with overdispersed poisson models. According to actuarial literature (England Verall, Stochastic Claims Reserving in General Insurance , Institute of Actiuaries 2002) this can be handled through the use of quasi likelihoods instead

Re: [R] about overdispersed poisson model

2006-07-09 Thread ronggui
You can use glm to analysis this data ,with family=quasipoisson. see ?glm and ?family 2006/7/10, g0354502 [EMAIL PROTECTED]: Dear R users I have been looking for functions that can deal with overdispersed poisson models. According to actuarial literature (England Verall, Stochastic Claims

Re: [R] problem in my code

2006-07-09 Thread Gabor Grothendieck
The problem can be reduced to this: x - 1 x[1] - 2 # error The following are ok: x - 1 x[1] - 3 x - 1 x - 4 x - 1 x - 5 Does anyone know why? Is this a bug in - ? On 7/9/06, Taka Matzmoto [EMAIL PROTECTED] wrote: Dear R-users I wrote a small program for assigning a membership Here is

[R] A possible too old question on significant test of correlation matrix

2006-07-09 Thread Guo Wei-Wei
Dear all, I'm working on a data.frame named en.data, which has n cases and m columns. I generate the correlation matrix of en.data by cor(en.data) I find that there is no p-value on each correlation in the correlation matrix. I searched in the R-help mail list and found some related posts, but