Re: [R] Adding rownames with different lengths to a table

2008-04-27 Thread David Winsemius
David Winsemius <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > filip rendel <[EMAIL PROTECTED]> wrote in > news:[EMAIL PROTECTED]: > >> >> Hello! I would like to add names to a table. The table presents >> median values, numbers of values (n) and percentage(%) for a given >> agegroup.

[R] quasi-random sequences

2008-04-27 Thread adrian
Baptiste Augui? writes: > I have to generate a random set of coordinates (x,y) in [-1 ; 1]^2 > for say, N points. > [...] > My problem is to avoid collisions (overlap, really) between the > points. I would like some random pattern, but with a minimum > exclusion distance. As Brian Ripley has ment

[R] problem in fisher.test

2008-04-27 Thread Dr. Jeff Miller
I just a ran a fisher.test on a 9x5 table and received the following message Error in fisher.test(apaslg.t) : FEXACT error 30. Stack length exceeded in f3xact. This problem should not occur. I agree. The problem should not occur. I did some searching but only found other reports of th

Re: [R] Grouped data

2008-04-27 Thread Gabor Grothendieck
Check out the meta and rmeta packages. On Sun, Apr 27, 2008 at 8:45 PM, David Scott <[EMAIL PROTECTED]> wrote: > > I have been given some data in summary form, as means and standard > deviations for a number of studies. I want to combine some studies to > obtain overall means and standard deviatio

Re: [R] Label Rotation when Plotting with Factors

2008-04-27 Thread jim holtman
Is this what you want: city <- factor(c("denver", 'cincy', 'chicago','nyc')) par(mar=c(8,4,1,1)) # enough margin on x-axis plot(city, 1:4, xaxt='n') axis(1, at=as.numeric(city),labels=city, las=2) On Sun, Apr 27, 2008 at 8:15 PM, <[EMAIL PROTECTED]> wrote: > Hello, > > Sorry if this is a repea

[R] Grouped data

2008-04-27 Thread David Scott
I have been given some data in summary form, as means and standard deviations for a number of studies. I want to combine some studies to obtain overall means and standard deviations and also to carry out t-tests. Obviously I can write code to do this but most likely someone has doone this alr

[R] Label Rotation when Plotting with Factors

2008-04-27 Thread mwittmann
Hello, Sorry if this is a repeat, having trouble finding what I need on archive and am a novice with graphics in R! I have plotted the results of a logit regression by factor, where "city" is the factor set name. The problem is city names are too long and I need to rotate them 90 degrees along

[R] Making color gradient

2008-04-27 Thread Zarrar Shehzad
Hi I would like to make a color bar with a gradient of colors that represent values between 0-1. I used the gradient.rect function in plotrix to make the actually color bar but I don't know how to put a range of values (0-1) next to the color bar. How do I do this? Thanks Zarrar -- Zarrar She

Re: [R] Raising a matrix to the (-1/2) power.

2008-04-27 Thread Bill.Venables
This is probably as good a way as any way for this kind of problem. First define a binary operator: > "%^%" <- function(x, n) with(eigen(x), vectors %*% (values^n * t(vectors))) Your toy example then becomes > m <- matrix(c(1, 0.4, 0.4, 1), nrow = 2) > m [,1] [,2] [1,] 1.0 0.4 [2

Re: [R] Adding rownames with different lengths to a table

2008-04-27 Thread David Winsemius
filip rendel <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > > Hello! I would like to add names to a table. The table presents > median values, numbers of values (n) and percentage(%) for a given > agegroup. Thus I would like to add a label above these three > variables for each category.

Re: [R] problem with size of array

2008-04-27 Thread jim holtman
Why are you using 'i' in both of the 'for' loops? The value in the first is overwritten by the second and you will not get the correct answer. r <- rnorm(1000,0,1) caminho <- c(1 , 3.2 , 1.2 , 3, 2, 1, 4, 5) p2<-function(r){ gama=0 for(i in 1:1000){ c=caminh

[R] problem with size of array

2008-04-27 Thread Manoel Santos
+ > p2<-function(r){ + gama=0 + for(i in 1:1000){ + c=caminho[[4]] + for(i in 1:caminho[[3]]+1) { + c=c+caminho[[i+3]]*((r[i])^(i-1)) + d=(abs(c))*exp(-(x^2/2))} + gama=gama + ( d/(h(r[i])) ) } + return(gama)} > e3<-p2(r) OBS: r is a rnorm(1000,0,1) > caminho theta_chapeu f_estrela k a0 a1 a2

Re: [R] reading information

2008-04-27 Thread Duncan Murdoch
On 27/04/2008 12:47 PM, Manoel Santos wrote: > someone? please i really need this Your question >> > p<-function(x){ > + for(i in 1:teste2[k]+1){ > + p2=c+teste2[3+i]*x^(i-1) > + c=p2} > + return(c)} >> > p3<-p(x) > if i make this i can use a p(x) calling a function in anohter function? no , >

Re: [R] resolution (dpi) problem

2008-04-27 Thread Duncan Murdoch
On 27/04/2008 2:05 PM, Ben Bolker wrote: > > Slightly off-topic, but I have been slightly surprised > in recent years at how much trouble I have with the > graphics people at journals -- I have been asked for > TIFF files when I submit PDF, PostScript instead of > PDF, TIFF instead of PNG ... I

Re: [R] R instalation on Ubuntu 7.10

2008-04-27 Thread Dirk Eddelbuettel
On 27 April 2008 at 21:15, chockri adnen wrote: | To obtain the latest R packages, add an entry like: | | deb http://my.favorite.cran.mirror/bin/linux/ubuntu feisty/ I think you'd want deb http://my.favorite.cran.mirror/bin/linux/ubuntu gutsy/ for Ubuntu 7.10 though CRAN's feisty backport

Re: [R] R instalation on Ubuntu 7.10

2008-04-27 Thread Dirk Eddelbuettel
On 27 April 2008 at 21:03, Jose Bustos Melo wrote: | Hi everyone, | | I'm trying to change the operative systems in the Lab Biology. Now We are using Ubuntu 7.10 and we are trying to install the R software. [ I thin you mean 'operating system'. ] | Someone can send some step to do

Re: [R] R instalation on Ubuntu 7.10

2008-04-27 Thread chockri adnen
Hello, To obtain the latest R packages, add an entry like: deb http://my.favorite.cran.mirror/bin/linux/ubuntu feisty/ in your /etc/apt/sources.list file :: * First open a terminal (Applications - Accessories - terminal). * Then open /etc/apt/sources.list with root privileges: type in the termi

[R] R instalation on Ubuntu 7.10

2008-04-27 Thread Jose Bustos Melo
Hi everyone, I'm trying to change the operative systems in the Lab Biology. Now We are using Ubuntu 7.10 and we are trying to install the R software. Someone can send some step to do this instalation easy? Like for dummies, because we are so novice in this system. Thank you in

[R] Help with installing R on Red Hat linux 4

2008-04-27 Thread David . Nordello
I am trying to install the rpm for R I using Red Hat 4 ES on a 64bit machine Kernel version is 2,6,9-67 This is the error i get "Failed Dependencies libg2c.so () ()(64bit) is needed by R-2.6.2-1.rh4.x86_64rpm I have libf2c-3.4.6-9 installed on the box any suggestions? thanks -- David Nordello

Re: [R] how to modify the histogram's frequencies

2008-04-27 Thread Ted Harding
On 27-Apr-08 16:41:58, marcelha mukim wrote: > Hi Sarah: > > Thank you very much, but my problem remains. What I want is not > duplicate the sample, but be able to divide each frequency for > a factor(specific for each value).For example: > > Values 1 2 34 5 > Frequency

Re: [R] resolution (dpi) problem

2008-04-27 Thread Ben Bolker
Slightly off-topic, but I have been slightly surprised in recent years at how much trouble I have with the graphics people at journals -- I have been asked for TIFF files when I submit PDF, PostScript instead of PDF, TIFF instead of PNG ... I can do most of these things by regenerating the figu

Re: [R] how to modify the histogram's frequencies

2008-04-27 Thread Jorge Ivan Velez
Dear Marcelha, Is this what you want? x=" Values 1 2 34 5 Frequency 10 34 56 67 98 Factor 105 50 60 150 200" # Data set m=read.table(textConnection(x),header=FALSE) # Weights w=as.numeric(m[m$V1=="Frequency",2:6]/m[m$V1=="Factor",2:6]) #

Re: [R] parallel max, min, and median of dataframe columns

2008-04-27 Thread Gabor Grothendieck
One can use sapply(data_frame, min) and similarly for max and median. Another possibility is to use quantile and matplot like this ir <- iris[1:3, 1:4] # sample data using builtin iris data set mat <- t(sapply(ir, quantile, c(1, .5, 0))) matplot(mat, type = "hp", lty = 1, pch = 20, xaxt = "n",

Re: [R] Raising a matrix to the (-1/2) power.

2008-04-27 Thread Charles C. Berry
On Sun, 27 Apr 2008, jmrossbach wrote: > > Hi, I need to raise a correlation matrix; R; to the negative one half power. > i.e. I need to find R^(-1/2) > > eg: if R=[{1,.4},{.4,1}], then R^(-1/2)=[{1.0681,-.2229}, > {-.2229,1.0681}]where matrix=[{row1},{row2}] > > > And are there any built in funct

Re: [R] reading information

2008-04-27 Thread Manoel Santos
someone? please i really need this [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide co

Re: [R] how to modify the histogram's frequencies

2008-04-27 Thread marcelha mukim
Hi Sarah: Thank you very much, but my problem remains. What I want is not duplicate the sample, but be able to divide each frequency for a factor(specific for each value).For example: Values 1 2 34 5 Frequency 10 34 56 67 98 Factor 105 50 60

[R] parallel max, min, and median of dataframe columns

2008-04-27 Thread H.Jenkins
Hello, all, I have a dataframe of three rows and umpteen columns. I want to show the maximum, minimum, and median with a vertical line and a central dot (I'd use a boxplot, but with only three data points, that's overkill; I can't just use points, because of overlap and some of the other data

Re: [R] resolution (dpi) problem

2008-04-27 Thread Marc Schwartz
Prof Brian Ripley wrote: > On Sat, 26 Apr 2008, Marc Schwartz wrote: > >> See comments inline: >> >> Chris Walker wrote: >>> I am using R 2.4.1 with Windows XP. >> >> First, you are using a version of R that is a year and a half and 6 >> releases out of date. Version 2.7.0 was just released this

Re: [R] matrix from list

2008-04-27 Thread Olivier Lefevre
It's true one may have to set some rules but I think you are blowing it up. First, it is true one would have to agree for list[[vec]] to always return a matrix but it is the useful behaviour since you can already get a vector with unlist(list[vec]). Second, as to the raggedness, matrix(), array

[R] Adding rownames with different lengths to a table

2008-04-27 Thread filip rendel
Hello! I would like to add names to a table. The table presents median values, numbers of values (n) and percentage(%) for a given agegroup. Thus I would like to add a label above these three variables for each category. But if I try to use colnames I get a message telling me that the number of

Re: [R] Using R under Ubuntu...

2008-04-27 Thread Dirk Eddelbuettel
On 27 April 2008 at 10:57, Brian Lunergan wrote: | My apologies for not explaining myself clearly but yes, that's more or | less the mark I was aiming for. I suppose the Linux purists would think | less of me, but I am more comfortable in a graphic workspace. Should be | possible, shouldn't it?

Re: [R] Sum of random values

2008-04-27 Thread Matthias Kohl
Hello Ricardo, no, the distribution needs not to be predefined. You can define your own distribution. For more details you may want to have a look at the vignette which is provided by package "distrDoc". Do the random variables follow a discrete or an absolutely continuous distribution? To see

Re: [R] Using R under Ubuntu...

2008-04-27 Thread Jonathan Baron
On 04/27/08 10:57, Brian Lunergan wrote: > 宋� - �歌 wrote: > > Brian, > > > > I assume what you meant was that you did not see an icon on the > > desktop like in windows. Well, R does not have a GUI under linux, and > > you need to open a terminal and type "R" to get started. But you can > > inst

Re: [R] Using R under Ubuntu...

2008-04-27 Thread Ted Harding
On 27-Apr-08 14:25:57, Brian Lunergan wrote: > Morning all: > > Coming straight to the point. Switched from XP to Ubuntu Linux. > Followed the steps outlined on the website to install a current > version of R to my machine. Seems to have worked OK, but the > process doesn't install it to the deskt

Re: [R] Summarize data for MCA (FactoMineR)

2008-04-27 Thread David Winsemius
"Nelson Castillo" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Hi :-) > > I'm new to R and I started using it for a project (I'm the CS guy in > a group of statisticians helping them find out how to solve issues > as they come out). This is my first post to the list and I am > starting

Re: [R] Using R under Ubuntu...

2008-04-27 Thread Brian Lunergan
宋时歌 wrote: > Brian, > > I assume what you meant was that you did not see an icon on the > desktop like in windows. Well, R does not have a GUI under linux, and > you need to open a terminal and type "R" to get started. But you can > install either JGR, Rcommander, or PMG if you really want a GUI

Re: [R] Calling a stored model within the predict() function

2008-04-27 Thread Prof Brian Ripley
Please read ?load more carefully. Also, don't send multiple copies and completely ignore the posting guide -- people who do reduce dramatically their chances of getting a reply. On Sun, 27 Apr 2008, Jim_S wrote: > After a short discussion I decided to post my compete code and data set. I > hop

Re: [R] Using R under Ubuntu...

2008-04-27 Thread 宋时歌
Brian, I assume what you meant was that you did not see an icon on the desktop like in windows. Well, R does not have a GUI under linux, and you need to open a terminal and type "R" to get started. But you can install either JGR, Rcommander, or PMG if you really want a GUI. For me, Emacs + ESS + R

Re: [R] Sum of random values

2008-04-27 Thread Ricardo Bessa
Thank you Gregory, I know the package distR but the the percentiles that I have are from an unkonwn distribuition, and I think that the package distR only works with pre-defined distribuions. Best Regards, Ricardo Bessa> Subject: RE: [R] Sum of random values> Date: Fri, 25 Apr 2008 09:16:10 -

[R] Using R under Ubuntu...

2008-04-27 Thread Brian Lunergan
Morning all: Coming straight to the point. Switched from XP to Ubuntu Linux. Followed the steps outlined on the website to install a current version of R to my machine. Seems to have worked OK, but the process doesn't install it to the desktop. The notes don't go into that part of it, so I'm se

[R] Adding text above a table

2008-04-27 Thread filip rendel
Hello! I've made tables in R and I would like to add text explaining the table in R. How could I do that? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read th

Re: [R] Variables selection in Neural Networks

2008-04-27 Thread _Fede_
Thanks to answer Matthew. I hope that there is some function because to do all that by hand with so many variables it can be horrible. In addition, how it would make to see those that are not correlated and those that yes. Which is the threshold to decide one or another thing? _Fede_ Matthew Ba

Re: [R] Documentation General Comments

2008-04-27 Thread baptiste Auguié
I believe in the great value of a Wiki for documentation purposes. Perhaps one could imagine more discussions on this mailing list being turned into a wiki entry? I would rather like that personally: the information, references, and possible solutions to a problem could all be summarized in o

Re: [R] Calling a stored model within the predict() function

2008-04-27 Thread Jim_S
After a short discussion I decided to post my compete code and data set. I hope this makes sence. Thanks, Jim # READ DATA # = http://www.nabble.com/file/p16923910/SampleCluster.txt SampleCluster.txt setwd("C:/Program Files/R/library/mboost/data") SampleClusterData <- read.table("Sam

[R] Raising a matrix to the (-1/2) power.

2008-04-27 Thread jmrossbach
Hi, I need to raise a correlation matrix; R; to the negative one half power. i.e. I need to find R^(-1/2) eg: if R=[{1,.4},{.4,1}], then R^(-1/2)=[{1.0681,-.2229}, {-.2229,1.0681}]where matrix=[{row1},{row2}] And are there any built in functions to do this? mtx.exp doesn't work because it's no

Re: [R] how to modify the histogram's frequencies

2008-04-27 Thread Sarah Hardy
This is a reply to: Message: 43 Date: Sun, 27 Apr 2008 02:41:36 -0400 From: "marcelha mukim" <[EMAIL PROTECTED]> Subject: [R] how to modify the histogram's frequencies To: r-help@r-project.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain Hi: I have been trying t

Re: [R] Calling a stored model within the predict() function

2008-04-27 Thread Gabor Grothendieck
Read the last line of every message to r-help. On Sat, Apr 26, 2008 at 7:14 PM, Jim_S <[EMAIL PROTECTED]> wrote: > > Hi all, > > First of all, I'm a novice R user (less that a week), so perhaps my code > isn't very efficient. > > Using the MBoost package I created a model using the following comma

Re: [R] Calling a stored model within the predict() function

2008-04-27 Thread Jim_S
No replies yet... Is my problem explanation unclear? Please let me know, thanks! Jim -- View this message in context: http://www.nabble.com/Calling-a-stored-model-within-the-predict%28%29-function-tp16918111p16923325.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] quasi-random sequences

2008-04-27 Thread baptiste Auguié
Hi again, I've had a go at Prof Ripley's suggestion (Strauss process, code below). It works great for my limited purpose (qualitative drawing, really), I can just add a few mild concerns, - ideally the hard core would not be a fixed number, but a distribution of sizes (ellipses). - I could

Re: [R] Variables selection in Neural Networks

2008-04-27 Thread Matthew Barber
Hi Fede, You would have to eliminate the variables less correlated with the response variable. And for the explanatory variables to choose those that are very correlated to each other. I don't know if exists some function of R that does this by you. Mathew Barber _Fede_ wrote: > > Hi folks,

Re: [R] An ANOVA test that uses a distance matrix like hierarchical cluster analysis?

2008-04-27 Thread Gavin Simpson
Nick, Take a look at adonis() and betadisper() in package vegan. adonis() is a multivariate analogue of ANOVA that uses a dissimilarity matrix as input. betadisper() is a multivariate analogue of Levene's test and does a test for homogeneity of multivariate dispersions, again using a dissimilarity

[R] An ANOVA test that uses a distance matrix like hierarchical cluster analysis?

2008-04-27 Thread Nick Flyger
Hi All, I have a question which does not pertain directly to the use of R but comes from my use of R! I have data which can be described as 3-dimensional e.g. (x,y,z), with no negative component. The suggested way to analyze this data is via multivariate techniques or by calculating what amounts

Re: [R] Non-linear system of equations

2008-04-27 Thread Radka Pancheva
Hello, Thank you all for your answers. I'll try them all and I'm sure it will work. > >Try this: > >> library(Ryacas) >> x <- Sym("x") >> y <- Sym("y") >> Solve(List(x^2+y^2==6, x-y==3), List(x,y)) >expression(list(list(x == root(6 - y^2, 2), y == y))) > > >2008/4/25 Radka Pancheva <[