RE:RE: [R] Protocol for answering basic questions

2004-12-03 Thread Robert Brown FM CEFAS
How will I delete the reply without reading first unless I delete all replies? I've made it quite clear that some replies are useful, but some are unhelpful. I and other would like to see an improvement in r help; to just say take it or leave it, as many infer, is conceptually naive. I joined

Re: [R] core dump during make check when building 64-bit R on Solaris8/9

2004-12-03 Thread Peter Dalgaard
CHAN Chee Seng [EMAIL PROTECTED] writes: Can you write/send me the standalone program to show the problem so I can send to some Sun people that I know? Not at this point, I was hoping you had the time. BTW, how did you run R under dbx? (Sorry but I am not familiar with using dbx.) I get

Re: [R] Combined variable names

2004-12-03 Thread Martin Maechler
Richard == Richard A O'Keefe [EMAIL PROTECTED] on Fri, 3 Dec 2004 14:53:04 +1300 (NZDT) writes: Richard I wrote about the perennial assign to V1 ... Vn problem: What I want to know is *WHY* people are doing this? Richard I failed to make myself clear. Richard What I

Re: [R] A somewhat off the line question to a log normal distrib

2004-12-03 Thread Siegfried Gonzi
(Ted Harding) wrote: Not quite sure of your point here, Thomas. I certainly wasn't writing on the basis that the boss had claimed that they were either independent or identically disitributed, and the paragraph you quote was in reposnse to: The aformentioned daily measurements follow a

[R] help : the datail of Fortran subroutine that use in R

2004-12-03 Thread sepideh shokohi
How can I see the datail of Fortran subroutine that use in R. for example I want to see detail of emn routine that wrote in Fortran. .Fortran(emn, s$d, old, start, tobs, s$p, s$psi, s$n, s$x, s$npatt, s$r, s$mdpst, s$nmdp, tmp, tmp, numeric(s$p), mle, tau, m, mu0,

[R] arima and optim error

2004-12-03 Thread Johan Hedlund
Hi, I'm using the arima function in R to deal with timeseries data, accessing it from an external Java application. The connection to Java though, is not my problem. The problem is that often the arima function does not return a value, but instead throws the error: Error in optim ...

[R] multinomial probit

2004-12-03 Thread Charlie Sprenger
Hello All, I'm trying to run a multinomial probit on a dataset with 28 data points and five levels (0,1,2,3,4) in the latent choice involving response variable. I downloaded the latest mnp package to run the regression. It starts the calculation and then crashes the rpogram. I wish I could

[R] information

2004-12-03 Thread Anna Maria Paganoni
I would like to know if there exist any package on the profyle analysis, or on repeated measures, (AUC)... Thank for answering me, Anna Maria Paganoni Dipartimento di Matematica Politecnico di Milano piazza Leonardo da Vinci, 32 20133 Milano, Italy tel +39-0223994574 fax +39-0223994568

[R] organising the display in Trellis plots

2004-12-03 Thread Marco Chiarandini
Hallo, I would like to organise at my pleasure the layout of a trellis plot. Currently I have a 3x3 matrix display and 7 plots. Is it possible to choose which specific panels will stay empty? I tried index.perm to arrange the order. Then there is perm.cond which I could not understand if it can

[R] vector to matrix transformation

2004-12-03 Thread Gwenael Jacob
Dear, Some analysis (linear regression) can only be done from a vectorized dataset whereas others require a matrix (Mantel tests). I use the two analyses and thus need to format my data in matrix and vector. I spent some time trying to solve the problem and I just gave up. Did anyone knows

Re: [R] help : the datail of Fortran subroutine that use in R

2004-12-03 Thread Roger Bivand
On Fri, 3 Dec 2004, sepideh shokohi wrote: How can I see the datail of Fortran subroutine that use in R. for example I want to see detail of emn routine that wrote in Fortran. .Fortran(emn, s$d, old, start, tobs, s$p, s$psi, s$n, s$x, s$npatt, s$r, s$mdpst, s$nmdp, tmp,

[R] Re: Computation of space-time empirical crosscovariances

2004-12-03 Thread Edzer J. Pebesma
Giovanna, space-time cross covariance has never seemed to me something that can be done simple, but package gstat at least offers you: 1. to include time as a third dimension, and model 3D anisotropy, 2. to calculate cross variograms between different moments in time, and proceed with cokriging.

Re: [R] help : the datail of Fortran subroutine that use in R

2004-12-03 Thread Uwe Ligges
sepideh shokohi wrote: How can I see the datail of Fortran subroutine that use in R. for example I want to see detail of emn routine that wrote in Fortran. .Fortran(emn, s$d, old, start, tobs, s$p, s$psi, s$n, s$x, s$npatt, s$r, s$mdpst, s$nmdp, tmp, tmp, numeric(s$p),

R: [R] Re: Computation of space-time empirical crosscovariances

2004-12-03 Thread giovanna jona lasinio
Thanks, I'm looking at gstat and trying to understand in which way it is appropriate to add time as the third dimension... Indeed the simple attribute is not for space-time problems :-) -Messaggio originale- Da: Edzer J. Pebesma [mailto:[EMAIL PROTECTED] Inviato: venerdì, 3. dicembre

RE: [R] Getting R to emit an image file as a pipe or Base64 strea m: Mac OSX 10.3 - R 2.0.1

2004-12-03 Thread Liaw, Andy
From: Yuandan Zhang If you want to call R from perl, why don't you do a simple system call like: $callR=/usr/loca/bin/R CMD BATCH plotscript.R; system ($callR); It is not necessary to start X display if anything can be done in background But the problem is jpeg()/png() are not

RE: [R] help : the datail of Fortran subroutine that use in R

2004-12-03 Thread Liaw, Andy
Download the package source from CRAN (it would be something like norm_x.y-z.tar.gz, where x.y-z is the version). Unpack it somewhere and look norm/src. Andy From: sepideh shokohi How can I see the datail of Fortran subroutine that use in R. for example I want to see detail of emn

Re: [R] vector to matrix transformation

2004-12-03 Thread Sean Davis
On Dec 3, 2004, at 5:39 AM, Gwenael Jacob wrote: Dear, Some analysis (linear regression) can only be done from a vectorized dataset whereas others require a matrix (Mantel tests). I use the two analyses and thus need to format my data in matrix and vector. I spent some time trying to solve the

Re: [R] Text Mining with R

2004-12-03 Thread Christian Schulz
Hi, i didn't know anything and imho R is not the perfect basis for this , which i'm recognize when want doing a lot of text data manipulation. But with the open-sources software weka there exist some possibility's and subprojects related to text-mining. http://www.cs.waikato.ac.nz/ml/weka/

Re: [R] multinomial probit

2004-12-03 Thread Jean Eid
I think the polr is in MASS and indeed has a probit method. Jean, On Fri, 3 Dec 2004, Charlie Sprenger wrote: Hello All, I'm trying to run a multinomial probit on a dataset with 28 data points and five levels (0,1,2,3,4) in the latent choice involving response variable. I downloaded the

Re: [R] vector to matrix transformation

2004-12-03 Thread Petr Pikal
On 3 Dec 2004 at 11:39, Gwenael Jacob wrote: Dear, Some analysis (linear regression) can only be done from a vectorized dataset whereas others require a matrix (Mantel tests). I use the two analyses and thus need to format my data in matrix and vector. I spent some time trying to

RE: [R] How about a mascot for R?

2004-12-03 Thread Philippe Grosjean
I'd vote for the inchworm because what is more representative to stat? The Gauss curve, of course! What looks like a Gauss curve? The inchworm: http://www.floridanature.org/photos/Geometridae,_Tallahassee,_20011230.jpg http://www.daniellesplace.com/Images2/inchwormcoloractivity.gif Best,

RE: RE: [R] Protocol for answering basic questions

2004-12-03 Thread Liaw, Andy
Apologies to those who are tired of these rather off-topic discussions. I'll try to be brief. From: Robert Brown FM CEFAS How will I delete the reply without reading first unless I delete all replies? I've made it quite clear that some replies are useful, but some are unhelpful. I and

Réf. : Re: [R] Choice modelling (was:(no subject))

2004-12-03 Thread julien . ruiz
I could incorporate indicators of choice availability as explanotary variables, but it does not seem a very good way to do it. Instead, for a logit model, I have coded a likelihood computation of the underlying model with varying choice set and I use optim function to get the maximum. Could

RE: [R] vector to matrix transformation

2004-12-03 Thread Andy Bunn
In addition to Sean's reply look at ?dist and other ways of creating distance / similarity matrices for applications like Mantels Test. Package vegan might be particularly useful. HTH, Andy R x - rnorm(10) R y - dist(x) R str(x) num [1:10] -0.431 0.564 0.901 -1.407 -0.991 ... R str(y)

Re: [R] combine two strings

2004-12-03 Thread Kjetil Brinchmann Halvorsen
Ben-Yang Liao wrote: Hello, I would like to combine two strings while using R. For instance, string1 - abcde string2 - WXYZ I'd like to combine string1 and string2 into Sting3; and string3 should be abcdeWXZY. paste(string1, string2, sep=) Would you please tell me how to do it? Thank you very

Re: [R] multinomial probit

2004-12-03 Thread Kjetil Brinchmann Halvorsen
Charlie Sprenger wrote: Hello All, I'm trying to run a multinomial probit on a dataset with 28 data points and five levels (0,1,2,3,4) in the latent choice involving response variable. I downloaded the latest mnp package to run the regression. It starts

[R] Computing the minimal polynomial or, at least, its degree

2004-12-03 Thread Ravi Varadhan
Hi, I would like to know whether there exist algorithms to compute the coefficients or, at least, the degree of the minimal polynomial of a square matrix A (over the field of complex numbers)? I don't know whether this would require symbolic computation. If not, has any of the algorithms been

Re: [R] applying data generating function

2004-12-03 Thread Kjetil Brinchmann Halvorsen
ebru apaydÿfdn wrote: Can you write an R function to generate from N samples from the given Gibbs algorithm. Also we must repeat the study for different N values and different L values .And plot iterations vs F1 and iteration vs F2. F1, F2 ~N2 (0, ( 1 L ) )

Re: [R] information

2004-12-03 Thread Kjetil Brinchmann Halvorsen
Anna Maria Paganoni wrote: I would like to know if there exist any package on the profyle analysis, or on repeated measures, (AUC)... I don't know about profyle analyses, but have a look at the packages nlme (or lme4) which can do repeated measures. Kjetil Thank for answering me, Anna Maria

Re: [R] How about a mascot for R?

2004-12-03 Thread Kjetil Brinchmann Halvorsen
Philippe Grosjean wrote: I'd vote for the inchworm because what is more representative to stat? The Gauss curve, of course! What looks like a Gauss curve? The inchworm: Erling B. Andersen tells in his paper in Rasch Models: Foundations, Recent Developments, and Applications edited by G. H.

[R] Computing the minimal polynomial or, at least, its degree

2004-12-03 Thread Ravi Varadhan
Hi, I would like to know whether there exist algorithms to compute the coefficients or, at least, the degree of the minimal polynomial of a square matrix A (over the field of complex numbers)? I don't know whether this would require symbolic computation. If not, has any of the algorithms been

RE: [R] [BASIC] Solution of combining two strings

2004-12-03 Thread John
You can try the following code: R string3 - paste(string1, string2, sep=) R ?paste Have a look at the following functions too which I found useful when I wanted to use 'paste': R ?assign R ?sub R ?gsub Please don't forget to read the posting guide. http://www.R-project.org/posting-guide.html

Re: [R] multinomial probit

2004-12-03 Thread Kosuke Imai
Dear Charlie, The multinomial probit model estimates the covariance matrix of the latent variables in addition to the coefficents. In your case with 5 alternatives, there are 9 parameters in the covariance matrix. This means that even if you only have intercepts in your model (no covariate), you

Re: [R] Computing the minimal polynomial or, at least, its degree

2004-12-03 Thread Spencer Graves
Have you looked at library(polynom)? Will that with unique(eigen(A)$values) allow you to compute what you want? hope this helps. spencer graves Ravi Varadhan wrote: Hi, I would like to know whether there exist algorithms to compute the coefficients or, at least, the degree of

Re: [R] organising the display in Trellis plots

2004-12-03 Thread Deepayan Sarkar
On Friday 03 December 2004 03:47, Marco Chiarandini wrote: Hallo, I would like to organise at my pleasure the layout of a trellis plot. Currently I have a 3x3 matrix display and 7 plots. Is it possible to choose which specific panels will stay empty? Well, you have already specified

Re: [R] How about a mascot for R?

2004-12-03 Thread Peter Dalgaard
Kjetil Brinchmann Halvorsen [EMAIL PROTECTED] writes: Philippe Grosjean wrote: I'd vote for the inchworm because what is more representative to stat? The Gauss curve, of course! What looks like a Gauss curve? The inchworm: Erling B. Andersen tells in his paper in Rasch Models:

Re: [R] R program for row-column designs!

2004-12-03 Thread Kjetil Brinchmann Halvorsen
Xianggui QU wrote: Does anybody have an R program to generate row-column designs and to produce the incidence matrices? I would appreciate if you could share it with me! Thank you! Harvey. CRAN package crossdes has something for row-col design, but specifically for crossover designs, it

[R] setGeneric(rm)

2004-12-03 Thread Marcos Aurélio Carrero
Hi, We are developing a package using S4 classes. The S4 classes are wrappers to C++ classes. So S4 classes contain an integer that is the memory address of one C++ object. If an user calls the rm() function, the C++ object must be deleted. But our generic rm() function apparently doesn't work.

[R] sampling

2004-12-03 Thread su su
Hi: I wonder if there is a way to resample paired value to do bootstrip? Thanks! __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

RE: [R] sampling

2004-12-03 Thread Liaw, Andy
Yes, by bootstrapping the index. E.g., if the pairs are in x and y, you can do something like: ind - sample(length(x)) x.boot - x[ind] y.boot - y[ind] Andy From: su su Hi: I wonder if there is a way to resample paired value to do bootstrip? Thanks!

[R] Package dev: Depends, require, SaveImage best practices?

2004-12-03 Thread Seth Falcon
I'm trying to sort out some best practices for package development and understand some behavior of R CMD check that has me confused. Best practice question: If a package foo appears in the Depends field in the DESCRIPTION file of mypkg, should I refrain from using require(foo) in the R source

Re: [R] Text Mining with R

2004-12-03 Thread Tobias Verbeke
On Thu, 2 Dec 2004 18:29:31 +0100 Daniele Medri [EMAIL PROTECTED] wrote: Dears, anyone has experiences with text mining and R? I'll be very greatfull for tutorial or examples. You may have a look at: http://wwwpeople.unil.ch/jean-pierre.mueller/ HTH, Tobias -- Daniele Medri -

[R] [R-pkgs] New package: polycor

2004-12-03 Thread John Fox
Dear list members, I've uploaded a new package, called polycor (version 0.5-0), to CRAN. The package has functions for computing polychoric and polyserial correlations, either by maximum-likelihood (in which case, standard errors are available) or by faster approximations. There's also a function

Re: [R] setGeneric(rm)

2004-12-03 Thread Roger Bivand
On Fri, 3 Dec 2004, Marcos Aurélio Carrero wrote: Hi, We are developing a package using S4 classes. The S4 classes are wrappers to C++ classes. So S4 classes contain an integer that is the memory address of one C++ object. If an user calls the rm() function, the C++ object must be deleted.

[R] how can I get the coefficients of x^0, x^1, x^2, . , x^6 from expansion of (1+x+x^2)^3

2004-12-03 Thread Peter Yang
Hi, I would like to get the coefficients of x^0, x^1, x^2, . , x^6 from expansion of (1+x+x^2)^3. The result should be 1, 3, 6, 7, 6, 3, 1; How can I calculate in R? You help will be greatly appreciated. Peter [[alternative HTML version deleted]]

Re: [R] Text Mining with R

2004-12-03 Thread Jose Quesada
Tobias, I just created a zip file from the tar, and used the install from zip option of the Rwin console. ttda is shown in the list of installed packages. However, when I try load packages, or the equivaent library(ttda), I get: Error in library(ttda) : 'ttda' is not a valid package --

Re: [R] how can I get the coefficients of x^0, x^1, x^2, . , x^6 from expansion of (1+x+x^2)^3

2004-12-03 Thread james . holtman
Use the 'polynom' library: p - as.polynomial(c(1,1,1)) p 1 + x + x^2 p^3 1 + 3*x + 6*x^2 + 7*x^3 + 6*x^4 + 3*x^5 + x^6 unclass(p^3) [1] 1 3 6 7 6 3 1 __ James HoltmanWhat is the problem you are trying to solve? Executive

Re: [R] Protocol for answering basic questions

2004-12-03 Thread Thomas Schnhoff
Hello, Liaw, Andy schrieb: Apologies to those who are tired of these rather off-topic discussions. I'll try to be brief. I will toss in my perspective, instead of speaking for others. To me, it's not how basic the questions are, but how they are being asked. It's been pointed out by several

Re: [R] Text Mining with R

2004-12-03 Thread Paul Roebuck
On Fri, 3 Dec 2004, Jose Quesada wrote: On Fri, 3 Dec 2004 19:15:57 +, Tobias Verbeke wrote: You may have a look at: http://wwwpeople.unil.ch/jean-pierre.mueller/ I just created a zip file from the tar, and used the install from zip option of the Rwin console. ttda is shown in

[R] Odd underflow(?) error

2004-12-03 Thread William Faulk
I'm still trying to install R on my Irix machine. Now I have a new problem that crops up during the checks. I've found the root cause, and it's that R is returning zero for certain things for reasons I don't understand. 2.225073859e-308, entered directly into R, responds 2.225074e-308.

Re: [R] Label data points in scatterplot matrices

2004-12-03 Thread Uwe Ligges
Mauricio Esguerra wrote: Hello, I am new to R and would like to know how to label data points in the matrices of scatterplots made by the pairs() command. To be more specific, I want to assign a number to each data point, instead of the small circumference that appears as a data point. If anyone

Re: [R] How about a mascot for R?

2004-12-03 Thread Thomas Yee
On Fri, Dec 03, 2004 at 03:04:52PM +1300, David Scott wrote: As to an animal mascot, I think a New Zealand mascot is a must, and suggestions of Australian ones would not be warmly received by New Zealanders. (To clarify, despite the address, I am Australian.) My suggestion is the Kea: inquisitive

Re: [R] Odd underflow(?) error

2004-12-03 Thread Thomas Lumley
On Fri, 3 Dec 2004, William Faulk wrote: I'm still trying to install R on my Irix machine. Now I have a new problem that crops up during the checks. I've found the root cause, and it's that R is returning zero for certain things for reasons I don't understand. 2.225073859e-308, entered

Re: [R] Label data points in scatterplot matrices

2004-12-03 Thread Tom Mulholland
This does job, but it reveals that I don't really understand panels. What I would like to know is how do you get the same result but without the warnings. This is essentially taken from the ?pairs help. data(USJudgeRatings) # There are 43 observations in this data.frame z - 1:43 panel.text -

Re: [R] how can I get the coefficients of x^0, x^1, x^2, . , x^6 from expansion of (1+x+x^2)^3

2004-12-03 Thread Spencer Graves
Have you considered library(polynom)? If you don't already have it but have R, install.packages(polynom) should get it. hope this helps. spencer graves Peter Yang wrote: Hi, I would like to get the coefficients of x^0, x^1, x^2, . , x^6 from expansion of (1+x+x^2)^3. The result

RE: [R] how can I get the coefficients of x^0, x^1, x^2, . , x^6 from expansion of (1+x+x^2)^3

2004-12-03 Thread Gabor Grothendieck
From: Peter Yang [EMAIL PROTECTED] I would like to get the coefficients of x^0, x^1, x^2, . , x^6 from expansion of (1+x+x^2)^3. # modification of DD in example(D) to support 0th derivative DD - function(expr,name, order = 0) { if(order == 0) expr else DD(D(expr, name), name,

RE: [R] how can I get the coefficients of x^0, x^1, x^2, . , x^6 from expansion of (1+x+x^2)^3

2004-12-03 Thread Gabor Grothendieck
From: Peter Yang [EMAIL PROTECTED] I would like to get the coefficients of x^0, x^1, x^2, . , x^6 from expansion of (1+x+x^2)^3. # modification of DD in example(D) to support 0th derivative DD - function(expr,name, order = 0) { if(order == 0) expr else DD(D(expr, name), name, order -

Re: [R] How to wrap or split labels on plot

2004-12-03 Thread Marc Schwartz
On Fri, 2004-12-03 at 15:00 -0500, Heather J. Branton wrote: Dear R gurus, I want to wrap labels that are too long for a plot. I have looked at strsplit(), substr(), nchar(), and strwrap(). I think it's some combination but I'm having difficulty trying to figure out the right combo. I

Re: [R] Computing the minimal polynomial or, at least, its degree

2004-12-03 Thread Spencer Graves
How about the following: library(polynom) help(package=polynom) A - diag(c(1:2, 2)) eigVals - eigen(A)$values multEig - table(eigVals) k - length(multEig) ratPoly - minPoly - 1 for(i in 1:k){ poly.i - polynomial(c(-as.numeric(names(multEig)[i]), 1)) minPoly - (minPoly*poly.i)

Re: [R] how can I get the coefficients of x^0, x^1, x^2, . , x^6 from expansion of (1+x+x^2)^3

2004-12-03 Thread Spencer Graves
Alternatively, how about the following: library(polynom) coefficients(polynomial(c(1,1,1))^3) [1] 1 3 6 7 6 3 1 hope this helps. spencer graves Gabor Grothendieck wrote: From: Peter Yang [EMAIL PROTECTED] I would like to get the coefficients of x^0, x^1, x^2, . , x^6 from

RE: [R] vector to matrix transformation

2004-12-03 Thread Gabor Grothendieck
If v is a vector, as.matrix(v) and t(v) give row and column matrices and matrix(v,nrow=nr, ncol=nc) gives a matrix with nr rows and nc columns such that the vector fills the first column, then the second, etc. You only have to provide nr or nc in most cases. If m is a matrix c(m) is a