Re: [R] Enquiry about Hierarchical Clustering

2003-09-26 Thread kjetil brinchmann halvorsen
On 27 Sep 2003 at 13:30, Setsuko Kinoshita wrote: Try package cluster: library(cluster) ?daisy # computes dissimilarity matrix with missing data ?agnes # aglomerative nesting Kjetil Halvorsen > Dear Sir, > > This is Ms. Setsuko Kinoshita writing from Japan. > > I have a question about " missi

[R] data.frame -> matrix

2003-09-26 Thread Sokratis Alikhanidi
Dear colleagues, I am beginner, so the primitive questions: in pls.pcr package in the function mvr I need to indicate a matrix of observations and a vector of responses. But read.table function returns the data.frame object. What is the way for conversion of the data.frame object into matrix

[R] Enquiry about Hierarchical Clustering

2003-09-26 Thread Setsuko Kinoshita
Dear Sir, This is Ms. Setsuko Kinoshita writing from Japan. I have a question about " missing value" in Hierarchical Clustering. Hierarchical Clustering was not available the data with missing value for earlier version of "R". I used Euclidean distance and complete linkage m

[R] A re-sampling problem

2003-09-26 Thread Nathan Cooper
I plan on analyzing some bird point count data. I need to develop a re-sampling regime for data like this. I used scan(file="Sample.txt",what=list(0,0,0,0,0,0),sep="\t") [[1]] [1] 1 2 3 4 5 [[2]] [1] 6 7 8 9 NA [[3]] [1] 10 11 12 13 NA [[4]] [1] 14 15 16 NA NA [[5]] [1] 17 18 19 20 21 Each r

RE: [R] Std. errors of intercept and slope

2003-09-26 Thread Ben Bolker
I'm afraid you're going to have to look it up in a basic statistics textbook. Ben Bolker On Fri, 26 Sep 2003, Yao, Minghua wrote: > Thanks, Ben. > > Could you tell me the formula for calculating this sd., given (x_i, y_i) > (i=1,2,...,N)? > We only have one intercept and slope for them.

[R] a. crossing branches with hclust, b. plot.dendrogram

2003-09-26 Thread Petra Steiner
Hello, a. when I use hclust with the methods media, centroid, and mcquitty, and plot the results, the dendrograms have lines that are crossing each other. Is this ok? b. My next question refers to plot.dendrogram: How can I use parameters as "hang" or "cex" here? E.g. for st <- as.dendrogram(su

RE: [R] Std. errors of intercept and slope

2003-09-26 Thread Yao, Minghua
Thanks, Ben. Could you tell me the formula for calculating this sd., given (x_i, y_i) (i=1,2,...,N)? We only have one intercept and slope for them. -Minghua -Original Message- From: Ben Bolker [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 4:34 PM To: Yao, Minghua Cc: R Help

Re: [R] Std. errors of intercept and slope

2003-09-26 Thread Ben Bolker
Since the intercept and slope are estimated parameters, they have sampling distributions described by their means and standard deviations. The s.d. tells you the size of the uncertainty in intercept & in slope. This is a pretty basic stats question -- you need to refer to a standard textb

[R] Std. errors of intercept and slope

2003-09-26 Thread Yao, Minghua
Dear all, I have the following output generated by linear regression. Since there is only one regression intercept and one slope for one set of data, what is the meaning of std. error for intercept and that of slope? Thanks in advance. Sincerely, Minghua > data(thuesen) > attach(thuesen) > lm

Re: [R] rpmbuild of src.rpm error

2003-09-26 Thread Morgan Hough
Peter, I had tetex installed but not all the additional packages. I installed the missing packages and the R.src.rpm built just fine on the first Fedora Core test release (RHL 9.0.93 codenamed Severn). Thanks for the help. Take care. -Morgan On Thu, 25 Sep 2003, Peter Dalgaard BSA wrote: > Mor

[R] reproducing an error in dumped frames

2003-09-26 Thread Andy Jacobson
Greetings, I am doing many iterations of simple optimizations using the L-BFGS-B method of optim() in R-1.6.2. Very rarely (about 1 in every 100,000 trials), a process will encounter some problem in optim that triggers the error message "non-finite value su

RE: [R] checking generic/method consistency

2003-09-26 Thread Thomas Lumley
On Fri, 26 Sep 2003, Simon Fear wrote: > > -Original Message- > > From: Henrik Bengtsson [mailto:[EMAIL PROTECTED] > > Sent: 26 September 2003 16:43 > > > > ... the intention > > is to find a style that avoid problems like yours, where it says that > > you should avoid periods in function

Re: [R] checking generic/method consistency

2003-09-26 Thread Paul Gilbert
Simon Fear wrote: From: Henrik Bengtsson [mailto:[EMAIL PROTECTED] ... the intention is to find a style that avoid problems like yours, where it says that you should avoid periods in function names except if you use it for S3 class methods. Feedback is appreciated. So, I don't see uni

RE: [R] checking generic/method consistency

2003-09-26 Thread Simon Fear
> -Original Message- > From: Henrik Bengtsson [mailto:[EMAIL PROTECTED] > Sent: 26 September 2003 16:43 > ... the intention > is to find a style that avoid problems like yours, where it says that > you should avoid periods in function names except if you use it for S3 > class methods. Fee

[R] [R-pkgs] R spatial projects mailing list and web site

2003-09-26 Thread Roger Bivand
A mailing list has been opened, and a collection of web pages assembled, to provide a joint forum for R spatial projects, where spatial data is understood mostly as geographical data. The mailing list is for discussing the development and use of R functions and packages for handling and analysis o

Re: [R] performance question

2003-09-26 Thread Thomas Lumley
On Fri, 26 Sep 2003, Axel Benz wrote: > Hi, > I am about to write functions for multivariate kernel densitiy estimation > with mixed categorical and continuous date (accoring to Jeff Racine and Qi > Li), and the leave-one-out window esitmation needs a lot of computation. > I am now optimizing the

Re: [R] performance question

2003-09-26 Thread Thomas W Blackwell
Axel - I believe that a function argument is not literally copied until the first time it is modified within the function. See email exchanges on this list from/to Ross Boylan within the month of September for a more authoritative answer to this question. (Do you know about the R-help archives a

Re: [R] empty postscript output of figures

2003-09-26 Thread Thomas W Blackwell
Andreas - help("postscript") says: "Arguments: file: ... For use with 'onefile=FALSE' give a 'printf' format such as `"Rplot%03d.ps"' (the default in that case)." The "%03d" will be replaced with a three digit number in the actual file name. This allows postscript() to generate a distin

RE: [R] checking generic/method consistency

2003-09-26 Thread Henrik Bengtsson
Hi, it looks from the names of your argument that your function is a "plain function", i.e. it is not a function specific to a class. If this is true, I would avoid the period and rename your function to solveLP <- function(cvec, bvec, Amat, maximum, maxiter, verbose) ... Under the S3 style of

[R] performance question

2003-09-26 Thread Axel Benz
Hi, I am about to write functions for multivariate kernel densitiy estimation with mixed categorical and continuous date (accoring to Jeff Racine and Qi Li), and the leave-one-out window esitmation needs a lot of computation. I am now optimizing the code performance and therefore fhe following ques

[R] empty postscript output of figures

2003-09-26 Thread Andreas Cordes
Hi, I have a puzzeling problem. I want to export graphics from R to TeX via postscript(). This works fine for some graphs, but for others, the eps remain empty when viewed with GSView. When such an empty eps is imported to TeX, the figure appears upside down and very small, irrespective of TeX widt

[R] checking generic/method consistency

2003-09-26 Thread Arne Henningsen
Hi, I wrote a package for linear programming and want to submit it to CRAN. Since the package 'quadprog' has a function with the name 'solve.QP' to perform Quadratic Programming, I named my (main) function 'solve.LP'. However 'R CMD check' gives one warning: * checking generic/method consisten

[R] CRAN mirror - howto?

2003-09-26 Thread M.Kondrin
Hello! There is a group of administartors of Russian internet site www.linuxportal.ru (this is mainly a forum for linux-users) who are intended to host on this site mirrors of linux distributions and open source software with http and ftp access. I have proposed to them to open there a CRAN mir

Re: [R] polar plotting of complex quantities

2003-09-26 Thread kjetil brinchmann halvorsen
On 26 Sep 2003 at 15:22, Olivier ETERRADOSSI wrote: This is really in "An introduction to R". Does the following help? > test <- rnorm(100) + 1i*rnorm(100) > summary(test) Length ClassMode 100 complex complex > plot(test) # gives a plot of real versus imaginary parts. Kjetil Halvor

Re: [R] installation : make fails (R-1.7.1 on RedHat 8.0)

2003-09-26 Thread Laurent Faisnel
Peter Dalgaard BSA wrote: Laurent Faisnel <[EMAIL PROTECTED]> writes: Peter Dalgaard BSA wrote: Laurent Faisnel <[EMAIL PROTECTED]> writes: Hi, I'm trying to compile R-1.7.1 from source (on a RedHat 8.0) instead of using the binary version, as it has often been advised. However I don't manage

Re: [R] polar plotting of complex quantities

2003-09-26 Thread Spencer Graves
I'm not certain what you want, but have you considered the following: tst <- (rnorm(5)+1i*rnorm(5)) plot(Re(tst), Im(tst)) plot(Mod(tst), Arg(tst)) hope this helps. spencer graves Olivier ETERRADOSSI wrote: Hello to everybody, ... and sorry if the question has already been answered. I am deali

Re: [R] 3d contours

2003-09-26 Thread Spencer Graves
I recieved and replied to this same post yesterday. Did you receive my reply? Also, have you searched www.r-project.org -> Search -> "R site search"? hope this helps. spencer graves Karim Elsawy wrote: Hi, I wonder if there is any R package or function which produces the co

[R] polar plotting of complex quantities

2003-09-26 Thread Olivier ETERRADOSSI
Hello to everybody, ... and sorry if the question has already been answered. I am dealing with complex numbers and need a way of plotting them on angular plots (2D and 3D). Is there a package that already manage this, or can somebody in this R-world who could help me with his skill ? Thanks to a

Re: [R] installation : make fails (R-1.7.1 on RedHat 8.0)

2003-09-26 Thread Peter Dalgaard BSA
Laurent Faisnel <[EMAIL PROTECTED]> writes: > Peter Dalgaard BSA wrote: > > Laurent Faisnel <[EMAIL PROTECTED]> writes: > > > >>Hi, > >> > >>I'm trying to compile R-1.7.1 from source (on a RedHat 8.0) instead of > >>using the binary version, as it has often been advised. > >>However I don't manage

Re: [R] installation : make fails (R-1.7.1 on RedHat 8.0)

2003-09-26 Thread Laurent Faisnel
Peter Dalgaard BSA wrote: Laurent Faisnel <[EMAIL PROTECTED]> writes: Hi, I'm trying to compile R-1.7.1 from source (on a RedHat 8.0) instead of using the binary version, as it has often been advised. However I don't manage to find a solution to the following error which occurs during the make p

[R] Gaussian mixture models, modelNames: EEV, VEV mclust2002

2003-09-26 Thread Bjoern Egert
Hello, I am using the parameterized EM- Algorithm in clustering context. I use generated datasets, containing 5000 points in 20 dimensions with 5 clusters. The following poses a problem for me: emEst<-me(modelName="EEV",data=data[,1:numDimensions],z=unmap(x)) emEst<-me(modelName="VEV"

Re: [R] installation : make fails (R-1.7.1 on RedHat 8.0)

2003-09-26 Thread Peter Dalgaard BSA
Laurent Faisnel <[EMAIL PROTECTED]> writes: > Hi, > > I'm trying to compile R-1.7.1 from source (on a RedHat 8.0) instead of > using the binary version, as it has often been advised. > However I don't manage to find a solution to the following error which > occurs during the make procedure : >

Re: [R] overlay two pixmap

2003-09-26 Thread Friedrich . Leisch
> On Fri, 26 Sep 2003 10:32:21 +0200, > Christoph Lehmann (CL) wrote: > Hi > I need to overlay two pixmaps (library (pixmap)). One, a pixmapGrey, is > the basis, and on this I need to overlay a pixmapIndexed, BUT: the > pixmapIndexed has set only some of its "pixels" to an indexed

Re: [R] least squares regression using (inequality) restrictions

2003-09-26 Thread Simon Wood
> I would like to make a lesast squares regression similar to that what is > done by the command "lm". But additionally, I would like to impose some > restrictions: > 1) The sum of all regression coefficients should be equal to 1. > 2) Each coefficient should assume a value between 0 and 1. (inequa

Re: [R] overlay two pixmap

2003-09-26 Thread Roger Bivand
Christoph Lehmann wrote: > I need to overlay two pixmaps (library (pixmap)). One, a pixmapGrey, is > the basis, and on this I need to overlay a pixmapIndexed, BUT: the > pixmapIndexed has set only some of its "pixels" to an indexed color, > many of its pixels should not cover the basis pixmapGrey

[R] installation : make fails (R-1.7.1 on RedHat 8.0)

2003-09-26 Thread Laurent Faisnel
Hi, I'm trying to compile R-1.7.1 from source (on a RedHat 8.0) instead of using the binary version, as it has often been advised. However I don't manage to find a solution to the following error which occurs during the make procedure : /!\---/!\ buildin

[R] 3d contours

2003-09-26 Thread Karim Elsawy
Hi, I wonder if there is any R package or function which produces the coordinates of a 3d contour (isosurface) from a 3d data array. any suggestions are very much appreciated best regards karim __ [EMAIL PROTECTED] mailing list https://www.stat.math.eth

[R] least squares regression using (inequality) restrictions

2003-09-26 Thread Harald Bartel
Dear R Users, I would like to make a lesast squares regression similar to that what is done by the command "lm". But additionally, I would like to impose some restrictions: 1) The sum of all regression coefficients should be equal to 1. 2) Each coefficient should assume a value between 0 and 1.

Re: [R] Spam-Filter @stat.math.ethz.ch: was dead for about 15 hours

2003-09-26 Thread Ernesto Jardim
On Fri, 2003-09-26 at 07:50, Martin Maechler wrote: > As many of you have probably realized, the spam filtering > at @stat.math.ethz.ch has been dead for since yesterday (09-25) > ~16:50 till today ~08:30. > > The sudden death may have been caused by unrelated installation > of some perl modules

[R] overlay two pixmap

2003-09-26 Thread Christoph Lehmann
Hi I need to overlay two pixmaps (library (pixmap)). One, a pixmapGrey, is the basis, and on this I need to overlay a pixmapIndexed, BUT: the pixmapIndexed has set only some of its "pixels" to an indexed color, many of its pixels should not cover the basis pixmapGrey pixel, means, for this "in pix

[R] overlay two pixmap

2003-09-26 Thread Christoph Lehmann
Hi I need to overlay two pixmaps (library (pixmap)). One, a pixmapGrey, is the basis, and on this I need to overlay a pixmapIndexed, BUT: the pixmapIndexed has set only some of its "pixels" to an indexed color, many of its pixels should not cover the basis pixmapGrey pixel, means, for this "in pix

Re: [R] allShortestPath function in e1071 package

2003-09-26 Thread Friedrich . Leisch
> On Thu, 25 Sep 2003 13:04:21 -0400, > Bing Zhang (BZ) wrote: > Hi All, > I am using the allShortestPath function based on Floyd's algorithm in e1071 > package. It runs great when I have less than 5000 nodes. But when I tried to > work on more than 5000 nodes, I ran into memory