[R] Interpreting Rprof output

2005-01-20 Thread Ale iberna
Hello! I have run Rprof on a function of mine and the results look very strange, to say the least. At the end I of this email is an output of summaryRprof. Can someone help me interpret this output? I have read the appropriate section in the manual Writing R Extensions and help pages. If

[R] Creating a custom connection to read from multiple files

2005-01-20 Thread Tomas Kalibera
Hello, is it possible to create my own connection which I could use with read.table or scan ? I would like to create a connection that would read from multiple files in sequence (like if they were concatenated), possibly with an option to skip first n lines of each file. I would like to avoid

Re: [R] Creating a custom connection to read from multiple files

2005-01-20 Thread Prof Brian Ripley
On Thu, 20 Jan 2005, Tomas Kalibera wrote: is it possible to create my own connection which I could use with Yes. In a sense, all the connections are custom connections written by someone. read.table or scan ? I would like to create a connection that would read from multiple files in sequence

Re: [R] Creating a custom connection to read from multiple files

2005-01-20 Thread Tomas Kalibera
Dear Prof Ripley, thanks for your suggestions, it's very nice one can create custom connections directly in R and I think it is what I need just now. However, what is wrong with reading a file at a time and combining the results in R using rbind? Well, the problem is performance. If I

Re: [R] Creating a custom connection to read from multiple files

2005-01-20 Thread Prof Brian Ripley
On Thu, 20 Jan 2005, Tomas Kalibera wrote: Dear Prof Ripley, thanks for your suggestions, it's very nice one can create custom connections directly in R and I think it is what I need just now. However, what is wrong with reading a file at a time and combining the results in R using rbind?

[R] Problem loading a library

2005-01-20 Thread Marco Sandri
Hi. I have R (Ver 2.0) correctly running on a Suse 9.0 Linux machine. I correclty installed the Logic Regression LogicReg library (by the command: R CMD INSTALL LogicReg) developed by Ingo Ruczinski and Charles Kooperberg : http://bear.fhcrc.org/~ingor/logic/html/program.html When I try to load

RE: [R] Creating a custom connection to read from multiple files

2005-01-20 Thread Liaw, Andy
From: Prof Brian Ripley On Thu, 20 Jan 2005, Tomas Kalibera wrote: Dear Prof Ripley, thanks for your suggestions, it's very nice one can create custom connections directly in R and I think it is what I need just now. However, what is wrong with reading a file at a time and

[R] Constructing Matrices

2005-01-20 Thread Doran, Harold
Dear List: I am working to construct a matrix of a particular form. For the most part, developing the matrix is simple and is built as follows: vl.mat-matrix(c(0,0,0,0,0,64,0,0,0,0,64,0,0,0,0,64),nc=4) Now to expand this matrix to be block-diagonal, I do the following: sample.size - 100 #

Re: [R] Problem loading a library

2005-01-20 Thread Prof Brian Ripley
On Thu, 20 Jan 2005, Marco Sandri wrote: Hi. I have R (Ver 2.0) correctly running on a Suse 9.0 Linux machine. 32- or 64-bit? I correclty installed the Logic Regression LogicReg library (by the command: R CMD INSTALL LogicReg) developed by Ingo Ruczinski and Charles Kooperberg :

RE: [R] Constructing Matrices

2005-01-20 Thread Liaw, Andy
I'm still not clear on exactly what your question is. If you can plug in the numbers you want in, say, the lower triangular portion, you can copy those to the upper triangular part easily; something like: m[upper.tri(m)] - m[lower.tri(m)] Is that what you're looking for? Andy From: Doran,

[R] References

2005-01-20 Thread kolluru ramesh
Where can I get the literature on Multiple Imputation using Additive Regressing, Bootstrapping, Predictive Mean Matching __ [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch

[R] Subsetting a data frame by a factor, using the level that occurs the most times

2005-01-20 Thread michael watson \(IAH-C\)
I think that title makes sense... I hope it does... I have a data frame, one of the columns of which is a factor. I want the rows of data that correspond to the level in that factor which occurs the most times. I can get a list by doing: by(data,data$pattern,subset) And go through each

[R] Reference Material for Multiple Imputation

2005-01-20 Thread kolluru ramesh
Any particular site where I get some examples and references in Multiple Imputation using Bootstrapping - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list

RE: [R] Constructing Matrices

2005-01-20 Thread Doran, Harold
I should probably have explained my data and model a little better. Assume I have student achievement scores across four time points. I estimate the model using gls() as follows fm1 - gls(score ~ time, long, correlation=corAR1(form=~1|stuid), method='ML') I can now extract the

[R] Cauchy's theorem

2005-01-20 Thread Robin Hankin
In complex analysis, Cauchy's integral theorem states (loosely speaking) that the path integral of any entire differentiable function, around any closed curve, is zero. I would like to see this numerically, using R (and indeed I would like to use the residue theorem as well). Has anyone coded

[R] (no subject)

2005-01-20 Thread Virginie Rondeau
Hello I would like to compare the results obtained with a classical non parametric proportionnal hazard model with a parametric proportionnal hazard model using a Weibull. How can we obtain the equivalence of the parameters using coxph(non parametric model) and survreg(parametric model) ?

Re: [R] (no subject)

2005-01-20 Thread Göran Broström
On Thu, Jan 20, 2005 at 03:18:53PM +0100, Virginie Rondeau wrote: Hello I would like to compare the results obtained with a classical non parametric proportionnal hazard model with a parametric proportionnal hazard model using a Weibull. How can we obtain the equivalence of the parameters

[R] Johnson transformation

2005-01-20 Thread
Hello, I'm Carla, an italian student, I'm looking for a package to transform non normal data to normality. I tried to use Box Cox, but it's not ok. There is a package to use Johnson families' transormation? Can you give me any suggestions to find free software as R that use this trasform? Thank

Re: [R] (no subject)

2005-01-20 Thread Frank E Harrell Jr
Virginie Rondeau wrote: Hello I would like to compare the results obtained with a classical non parametric proportionnal hazard model with a parametric proportionnal hazard model using a Weibull. How can we obtain the equivalence of the parameters using coxph(non parametric model) and

RE: [R] Johnson transformation

2005-01-20 Thread Charles Annis, P.E.
Greetings, Carla: While it is possible to map any proper density into a normal through their CDFs, that may not be useful in your case. I suggest that you first plot your data. ?qqnorm (Type ?qqnorm on the R command line and hit Enter.) Are your data continuous, or do they occur in groups? Do

Re: [R] Johnson transformation

2005-01-20 Thread Bob Wheeler
[EMAIL PROTECTED] wrote: Hello, I'm Carla, an italian student, I'm looking for a package to transform non normal data to normality. I tried to use Box Cox, but it's not ok. There is a package to use Johnson families' transormation? Can you give me any suggestions to find free software as R that

RE: [R] Cauchy's theorem

2005-01-20 Thread dr mike
I don't know about the 'in R' bit, but ISTR that Monte-Carlo (or pseudo Monte-Carlo) Integration is a way of doing this 'numerically'. I know that Mathematica implements the (pseudo Monte-Carlo) Halton-Hammersley-Wozniakowski algorithm as Nintegrate. Perhaps something equivalent has been coded by

[R] glm and percentage data with many zero values

2005-01-20 Thread Christian Kamenik
Dear all, I am interested in correctly testing effects of continuous environmental variables and ordered factors on bacterial abundance. Bacterial abundance is derived from counts and expressed as percentage. My problem is that the abundance data contain many zero values: Bacteria -

RE: [R] Subsetting a data frame by a factor, using the level that occurs the most times

2005-01-20 Thread Liaw, Andy
From: Douglas Bates michael watson (IAH-C) wrote: I think that title makes sense... I hope it does... I have a data frame, one of the columns of which is a factor. I want the rows of data that correspond to the level in that factor which occurs the most times. So first you

[R] ROracle error

2005-01-20 Thread Sabrina Carpentier
I am running R 2.0.0 on a SunOs 5.9 machine and using Oracle 8i.1.7.0.0 (enterprise edition) and when I try to load ROracle I receive the following error: require(ROracle) Loading required package: ROracle Loading required package: DBI Error in dyn.load(x, as.logical(local),

Re: [R] easing out of Excel

2005-01-20 Thread Greg Snow
Paul Sorenson [EMAIL PROTECTED] 01/19/05 03:18PM I know enough about R to be dangerous and our marketing people have asked me to automate some reporting. Data comes from an SQL source and graphs and various summaries are currently created manually in Excel. The raw information is invoicing

Re: [R] ROracle error

2005-01-20 Thread Prof Brian Ripley
On Thu, 20 Jan 2005, Sabrina Carpentier wrote: I am running R 2.0.0 on a SunOs 5.9 machine and using Oracle 8i.1.7.0.0 (enterprise edition) and when I try to load ROracle I receive the following error: require(ROracle) Loading required package: ROracle Loading required package: DBI Error in

Re: [R] Subsetting a data frame by a factor, using the level that occurs the most times

2005-01-20 Thread Douglas Bates
Liaw, Andy wrote: From: Douglas Bates michael watson (IAH-C) wrote: I think that title makes sense... I hope it does... I have a data frame, one of the columns of which is a factor. I want the rows of data that correspond to the level in that factor which occurs the most times. So first you

[R] Valasz: patched

2005-01-20 Thread info
Kedves Ügyfelünk! Az [EMAIL PROTECTED] címre küldött levelét rendszerünk fogadta, munkatársunk hamarosan válaszol rá. Amennyiben Ön rendelési, szállítási vagy egyéb adminisztrációs problémával kapcsolatban írt nekünk, kérjük újra küldje el a levelet az [EMAIL PROTECTED] címre, hogy a rendelések

RE: [R] Subsetting a data frame by a factor, using the level that occurs the most times

2005-01-20 Thread Liaw, Andy
From: Douglas Bates Liaw, Andy wrote: From: Douglas Bates michael watson (IAH-C) wrote: I think that title makes sense... I hope it does... I have a data frame, one of the columns of which is a factor. I want the rows of data that correspond to the level in that factor which

[R] Windows Front end-crash error

2005-01-20 Thread Doran, Harold
Dear List: First, many thanks to those who offered assistance while I constructed code for the simulation. I think I now have code that resolves most of the issues I encountered with memory. While the code works perfectly for smallish datasets with small sample sizes, it arouses a windows-based

[R] Cross-validation accuracy in SVM

2005-01-20 Thread Ton van Daelen
Hi all - I am trying to tune an SVM model by optimizing the cross-validation accuracy. Maximizing this value doesn't necessarily seem to minimize the number of misclassifications. Can anyone tell me how the cross-validation accuracy is defined? In the output below, for example, cross-validation

RE: [R] Cross-validation accuracy in SVM

2005-01-20 Thread Liaw, Andy
The 99.7% accuracy you quoted, I take it, is the accuracy on the training set. If so, that number hardly means anything (other than, perhaps, self-fulfilling prophecy). Usually what one would want is for the model to be able to predict data that weren't used to train the model with high

[R] Straight-line fitting with errors in both coordinates

2005-01-20 Thread Pan, Chongle
Hi All, I want to fit a straight line into a group of two-dimensional data points with errors in both x and y coordinates. I found there is an algorithm provided in NUMERICAL RECIPES IN C http://www.library.cornell.edu/nr/bookcpdf/c15-3.pdf I'm wondering if there is a similar function for this

RE: [R] easing out of Excel

2005-01-20 Thread Shawn Way
Definitely check out the lattice package. One other option is to use sweave/latex mixed with RODBC. This can be used to produce PDF's for easy distribution as well. I would also consider operating this in a batch mode, the R/sweave/latex works very well this way. Shawn Way, PE Engineering

Re: [R] Cross-validation accuracy in SVM

2005-01-20 Thread Frank E Harrell Jr
Ton van Daelen wrote: Hi all - I am trying to tune an SVM model by optimizing the cross-validation accuracy. Maximizing this value doesn't necessarily seem to minimize the number of misclassifications. Can anyone tell me how the cross-validation accuracy is defined? In the output below, for

[R] Successful installation of R 2.0.1 on SUSE 9.1

2005-01-20 Thread Min-Han Tan
Hi, We managed to compile R 2.0.1 on 64-bit SUSE Linux 9.1 on a HP Proliant setup fairly uneventfully by following instructions on the R installation guide. We did encounter a minor hiccup in setting up x11, a problem which we note has been raised 4 or 5 times previously, but this was overcome

Re: [R] how to call R in delphi?

2005-01-20 Thread Earl F. Glynn
Dieter Menne [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] To call R from Delphi, you may try http://www.menne-biomed.de/download/RDComDelphi.zip. I downloaded this file and tried to compile the RDCom project using Delphi 5 and Delphi 7 but I get this message from both compilers:

[R] Barplot at the axes of another plot

2005-01-20 Thread Robin Gruna
Hi, I want to draw a barplot at the axes of another plot. I saw that with two histogramms and a scatterplot in a R graphics tutorial somewhere on the net, seemed to be a 2d histogramm. Can someone figure out what I mean and give me a hint to create such a graphic? Thank you very much, Robin

Re: [R] Barplot at the axes of another plot

2005-01-20 Thread Marc Schwartz
On Thu, 2005-01-20 at 23:53 +0100, Robin Gruna wrote: Hi, I want to draw a barplot at the axes of another plot. I saw that with two histogramms and a scatterplot in a R graphics tutorial somewhere on the net, seemed to be a 2d histogramm. Can someone figure out what I mean and give me a hint

Re: [R] Windows Front end-crash error

2005-01-20 Thread Duncan Murdoch
On Thu, 20 Jan 2005 13:16:13 -0500, Doran, Harold [EMAIL PROTECTED] wrote : Dear List: First, many thanks to those who offered assistance while I constructed code for the simulation. I think I now have code that resolves most of the issues I encountered with memory. While the code works

[R] Plots with same x-axes

2005-01-20 Thread Robin Gruna
Hi, I want to plot two graphics on top of each other with layout(), a scatterplot and a barplot. The problems are the different x-axes ratios of the plots. How can I align the two x-axes? Thank you very much, Robin [[alternative HTML version deleted]]

[R] Plotting points from two vectors onto the same graph

2005-01-20 Thread K Fernandes
Hello, I have three vectors defined as follows: x-c(10,20,30,40,50) y1-c(154,143,147,140,148) y2-c(178,178,171,188,180) I would like to plot y1 vs x and y2 vs x on the same graph. How might I do this? I have looked through a help file on plots but could not find the answer to plotting

[R] Need help to transform data into co-occurence matix

2005-01-20 Thread Judie Z
Dear R experts, I have the data in the following fomat(from some kind of card sorting process) ID Category Card numbers 1 1 1,2,5 1 2 3,4 2 1 1,2 2 2 3 2 3 4,5 I want to transform this data into two co-occurence

RE: [R] Plotting points from two vectors onto the same graph

2005-01-20 Thread Mulholland, Tom
?points has this example plot(-4:4, -4:4, type = n)# setting up coord. system points(rnorm(200), rnorm(200), col = red) points(rnorm(100)/2, rnorm(100)/2, col = blue, cex = 1.5) In general you might want to check out the keyword section of the help, in particular the Graphics section which has

Re: [R] Plotting points from two vectors onto the same graph

2005-01-20 Thread Marc Schwartz
On Thu, 2005-01-20 at 20:51 -0500, K Fernandes wrote: Hello, I have three vectors defined as follows: x-c(10,20,30,40,50) y1-c(154,143,147,140,148) y2-c(178,178,171,188,180) I would like to plot y1 vs x and y2 vs x on the same graph. How might I do this? I have looked through a

Re: [R] Plots with same x-axes

2005-01-20 Thread Marc Schwartz
On Fri, 2005-01-21 at 01:48 +0100, Robin Gruna wrote: Hi, I want to plot two graphics on top of each other with layout(), a scatterplot and a barplot. The problems are the different x-axes ratios of the plots. How can I align the two x-axes? Thank you very much, Robin Robin, Here is an

RE: [R] easing out of Excel

2005-01-20 Thread Paul Sorenson
Thanks for the responses to this question, I fully realise it is a rather open question and the open pointers are the kind of thing I am looking for. I will look into the lattice package and layout. Regarding the HTML output, the current tool chain assets that I have have been refactored over

RE: [R] Need help to transform data into co-occurence matix

2005-01-20 Thread Liaw, Andy
From: Judie Z Dear R experts, I have the data in the following fomat(from some kind of card sorting process) ID Category Card numbers 1 1 1,2,5 1 2 3,4 2 1 1,2 2 2 3 2 3 4,5 I want to transform

Re: [R] Need help to transform data into co-occurence matix

2005-01-20 Thread Tim F Liao
Judie, You may want to see if the MedlineR library, which has a program for constructing co-occurrence matrices, will work for you. The program can be found at: http://dbsr.duke.edu/pub/MedlineR/ Have fun with it, Tim Liao Professor of Sociology Statistics University of Illinois Urbana, IL

RE: [R] easing out of Excel

2005-01-20 Thread Mulholland, Tom
I hesitate to add this comment since it either completely confuses people or they take to it very quickly. The data that you are using is mostly categorical. I expect that tables will have been used in the past and that to acertain extent the graphics are suppossed to help with getting a quick

[R] dim vs length for vectors

2005-01-20 Thread Olivia Lau
Hi all, I'm not sure if this is a feature or a bug (and I did read the FAQ and the posting guide, but am still not sure). Some of my students have been complaining and I thought I just might ask: Let K be a vector of length k. If one types dim(K), you get NULL rather than [1] k. Is this

Re: [R] dim vs length for vectors

2005-01-20 Thread Gabor Grothendieck
Olivia Lau olau at fas.harvard.edu writes: : : Hi all, : : I'm not sure if this is a feature or a bug (and I did read the : FAQ and the posting guide, but am still not sure). Some of my : students have been complaining and I thought I just might ask: : Let K be a vector of length k. If one

Re: [R] dim vs length for vectors

2005-01-20 Thread miguel manese
I think the more intuitive way to think of it is that dim works only for matrices (an array being a 1 column matrix). and vectors are not matrices. x - 1:5 class(x) # numeric dim(x) - 5 class(x) # array dim(x) - c(5,1) class(x) # matrix dim(x) - c(1,5) class(x) # matrix On Fri, 21

[R] Cholesky Decomposition

2005-01-20 Thread kolluru ramesh
Can we do Cholesky Decompositon in R for any matrix - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] dim vs length for vectors

2005-01-20 Thread Gabor Grothendieck
More generally, anything that has a dim attribute is an array including 1d, 2d, 3d structures with dim attributes. Matrices have a dim attribute so matrices are arrays and is.array(m) will be TRUE if m is a matrix. miguel manese jjonphl at gmail.com writes: : : I think the more intuitive