Re: [R] configure error: --with-readline

2006-11-07 Thread Peter Dalgaard
Anthony Liu [EMAIL PROTECTED] writes: Thanks. I do have readline.so. I just did not paste that part. Look. [EMAIL PROTECTED] myuserid]$ slocate readline.so /home/scratch/myuserid/usr/local/lib/python2.4/lib-dynload/readline.so

Re: [R] Colour-coded Editor for R Code

2006-11-07 Thread Bernardo Rangel tura
At 07:11 AM 11/6/2006, Jon Minton wrote: Do any of you know any simple programming editors for R scripts which offer basic colour-coding and bracket-matching facilities? Dregging through scripts to find a missing comma or parentheses is something I'd rather do less of... Jon Minton Well If

Re: [R] plot questions?

2006-11-07 Thread Uwe Ligges
zhijie zhang wrote: Dear Rusers, I want to know which function in R can perform the following tasks: 1.surface-data grid(x,y,z) #which could be done in splus, the name was from splus's options of graph 2. contourplot(x,y,z) #which could be done in splus By the way, where can i find

Re: [R] Rprofile.site

2006-11-07 Thread Uwe Ligges
Xiaodong Jin wrote: How to make it correct? [1] Error in parse(file, n = -1, NULL, ?) : syntax error at 1: {\ #source('c:/Documents and Settings/xxx/My Documents/Archives/R/test.r') #source(c:\\Documents and Settings\\xxx\\My Documents\\Archives\\R\\test.r) Can you

Re: [R] simple random cluster sampling - bootstrapping

2006-11-07 Thread Uwe Ligges
Im, Kelly wrote: Hello all, I have 300 clusters of fixed size 2 and I need to do resampling with replacement to run some regression models. I've searched through the archive and the only thing I found was that I could use 'boot()' function. but it's not clear to me how I can do this. Has

Re: [R] Draw a circle with a given radius in an existing map

2006-11-07 Thread Uwe Ligges
Xiaomei Ma wrote: I have drawn a map in which the X and Y axes are latitude and longitude. Now I need to draw one circle on the map - the center is a point with specific latitude and longitude, but the challenge is that the radius is in miles. Is there a way to do this? I'd very much

Re: [R] Look for a R Package to locate peak data point in one dimensional data set

2006-11-07 Thread Bjørn-Helge Mevik
I think the Bioconductor package PROcess has functions for that. -- Bjørn-Helge Mevik __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

[R] Reformat a data frame

2006-11-07 Thread Thorsten Muehge
Hello Experts, how do I reformat a data frame in the way described below: df1: IDdesc resist thick temp 1 4711 100 5 20 2 4712 101 4 21 3 4711 993 19 4 4712 987 22 TO df2: iddesc Param Value 1 4711 resist 100 1 4711

Re: [R] question on multilevel modeling

2006-11-07 Thread Chuck Cleland
Christoph Buser wrote: Dear Christine I think the problem in your second model is that you are including CORUMTO both as a fixed effect and as a random effect. That by itself should not be a problem. Here is an example in which age appears in both the fixed and random part of a model:

[R] Better way to create tables of mean standard deviations

2006-11-07 Thread Benjamin Dickgiesser
Hi I'm trying to create tables of means, standard deviations and numbers of observations (i) for each laboratory (ii) for each batch number (iii) for each batch at each laboratory for the attached data. I created these functions: summary.aggregate - function(y, label, ...) { temp.mean

Re: [R] Re : Draw a circle with a given radius in an existing map

2006-11-07 Thread Arien Lam
A function that works for me, assuming the Earth is close enough to a sphere (which may or may not be true in your application), follows below. Hope this helps, Arien # computes the place where you end up, if you travel a certain distance along a great circle, # which is uniquely defined by a

Re: [R] plot questions?-errors in persp(x1, x2, y) and contour(x1, x2, y)

2006-11-07 Thread zhijie zhang
Dear Uwe Ligges , I still can't finish it. * aa* #my data x1 x2 y 50.05 6 4.4180 10.50 3 2.6979 40.50 9 2.9000 70.95 6 2.6230 80.95 6 2.9078 90.95 6 2.6727 31.40 3 2.4203 21.40 9 2.5329 6 1.85 6 2.4867 * attach(aa)* * persp(x1,x2,y* error in

[R] Display problems X11 device

2006-11-07 Thread Nicolas Mazziotta
Hello, I am running R Version 2.3.1 (2006-06-01) on Kubuntu Edgy Eft 6.10 (problems appreared after upgrading from previous version, but I don't know which version of R was included then). I have very weird problems with X11 device: it seems that it cannot display correctly. For instance,

Re: [R] plot questions?-errors in persp(x1, x2, y) and contour(x1, x2, y)

2006-11-07 Thread Uwe Ligges
zhijie zhang wrote: Dear Uwe Ligges , I still can't finish it. * aa* #my data x1 x2 y 50.05 6 4.4180 10.50 3 2.6979 40.50 9 2.9000 70.95 6 2.6230 80.95 6 2.9078 90.95 6 2.6727 31.40 3 2.4203 21.40 9 2.5329 6 1.85 6 2.4867 *

Re: [R] Display problems X11 device

2006-11-07 Thread Nicolas Mazziotta
Hello, I am running R Version 2.3.1 (2006-06-01) on Kubuntu Edgy Eft 6.10 (problems appreared after upgrading from previous version, but I don't know which version of R was included then). I have very weird problems with X11 device: it seems that it cannot display correctly. For instance,

Re: [R] comparing 2 dataframes

2006-11-07 Thread Priya Kanhai
Hi The problem is I'm first connecting to the Access database with odbcConnectAccess and then select with a sqlQuery the dataframe. In your solution you are typing it. But mine databases consist of approximately 6 records. Maybe you have another solution? Thanks in advance. Regards, Priya

[R] Probit Scale

2006-11-07 Thread nelson -
Hi all! i search but i found no info, so i'm heere to ask you! How can i plot a graph using the probit scale on y axes? thanks, nelson __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] wrong fill colors in polygon-map

2006-11-07 Thread Frosch, Katharina
Dear all, I would like to produce a map with information about the patenting activity in German districts, by coloring districts with different degrees of patenting activity in different colors. I work with the packages maptools, maps and spdep. The map data is read from an external .shp file (+

Re: [R] Draw a circle with a given radius in an existing map

2006-11-07 Thread Duncan Murdoch
On 11/7/2006 12:11 AM, Xiaomei Ma wrote: I have drawn a map in which the X and Y axes are latitude and longitude. Now I need to draw one circle on the map - the center is a point with specific latitude and longitude, but the challenge is that the radius is in miles. Is there a way to do

[R] S-poetry as book

2006-11-07 Thread Benjamin Otto
Hi, Is there a printed version of S-poetry which can purchased or would I have to print out and bind it myself? Regards, Benjamin -- Benjamin Otto Universitaetsklinikum Eppendorf Hamburg Institut fuer Klinische Chemie Martinistrasse 52 20246 Hamburg [[alternative HTML

Re: [R] wrong fill colors in polygon-map

2006-11-07 Thread Roger Bivand
On Tue, 7 Nov 2006, Frosch, Katharina wrote: Dear all, I would like to produce a map with information about the patenting activity in German districts, by coloring districts with different degrees of patenting activity in different colors. I work with the packages maptools, maps and spdep.

[R] Gregexpr - extract results with lapply

2006-11-07 Thread Lapointe, Pierre
Gregexpr - extract results with lapply Hello, I need to extract sequences of three upper case letters in a string. In other words, in this string: str -c(ABC, this WOUld be gOOD) The result I'm looking for is ABC WOU OOD. With gregexpr, I can get the position and length of the

Re: [R] S-poetry as book

2006-11-07 Thread Patrick Burns
As far as I know, you are on your own. And it seems like I would know. Patrick Burns [EMAIL PROTECTED] +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and A Guide for the Unwilling S User) Benjamin Otto wrote: Hi, Is there a printed version of S-poetry which can purchased

Re: [R] Better way to create tables of mean standard deviations

2006-11-07 Thread Chuck Cleland
Benjamin Dickgiesser wrote: Hi I'm trying to create tables of means, standard deviations and numbers of observations (i) for each laboratory (ii) for each batch number (iii) for each batch at each laboratory for the attached data. I created these functions: summary.aggregate -

Re: [R] Reformat a data frame

2006-11-07 Thread Dimitris Rizopoulos
try the following df2 - reshape(df1[-1], idvar = id, direction = long, timevar = Param, times = c(resist, thick, temp), varying = list(c(resist, thick, temp))) df2 - df2[order(df2$id, df2$desc), ] rownames(df2) - 1:nrow(df2) df2 I hope it helps. Best, Dimitris Dimitris

Re: [R] Better way to create tables of mean standard deviations

2006-11-07 Thread hadley wickham
I can only think of rather complex ways to solve the labeling issue... I would appreciate it if someone could point out if there are better/cleaner/easier ways of achieving what I'm trying todo. Does this help? g - function(y) { s - apply(y, 2, function(z) {

Re: [R] Display problems X11 device

2006-11-07 Thread Prof Brian Ripley
On Tue, 7 Nov 2006, Nicolas Mazziotta wrote: Hello, I am running R Version 2.3.1 (2006-06-01) on Kubuntu Edgy Eft 6.10 (problems appreared after upgrading from previous version, but I don't know which version of R was included then). I have very weird problems with X11 device: it seems

Re: [R] changing image dimensions

2006-11-07 Thread hadley wickham
I'd get an external program to do it (e.g. ImageMagick) rather than reinventing. But if I had to reinvent, I'd do it by creating a function to interpolate [0,1] x [0,1] values from within the original image, and evaluate that function at the appropriate spots within the bigger one. Choosing

Re: [R] Scan or read.table bug in R?

2006-11-07 Thread Duncan Murdoch
Please post general R help questions to the R-help mailing list. The likely problem here is that your file isn't in the current working directory. To avoid this problem, I often use the file.choose() function to obtain a full path to the file, rather than typing the name out myself. Duncan

[R] error in format.df when using dec

2006-11-07 Thread Rainer M Krug
When using format.df with dec, the formating does not work (see code below). Any help appreciated how I could do the formating (I want to export to LaTeX), Rainer I am using the newest version of Hmisc from CRAN, R version: version _ platform i686-pc-linux-gnu arch

Re: [R] Gregexpr - extract results with lapply

2006-11-07 Thread Gabor Grothendieck
Try this: library(gsubfn) s -c(ABC, this WOUld be gOOD) strapply(s, [A-Z]{3}, perl = TRUE) See: http://code.google.com/p/gsubfn/ On 11/7/06, Lapointe, Pierre [EMAIL PROTECTED] wrote: Gregexpr - extract results with lapply Hello, I need to extract sequences of three upper case letters in a

[R] Boxplot

2006-11-07 Thread Benjamin Dickgiesser
Hi, I am new to R and am still trying to get a grip of it. I have data in this format: Run Lab Batch Y 1 1 1 1 608.781 2 2 1 2 569.670 3 3 1 1 689.556 4 4 1 2 747.541 5 5 1 1 618.134 6 6 1 2 612.182 7 7 1 1 680.203 8

Re: [R] Boxplot

2006-11-07 Thread Benjamin Dickgiesser
Ah I think I've got it: boxplot(Y ~ Batch, data=data, horizontal=T,xlab=Y, ylab=Batch) On 11/7/06, Benjamin Dickgiesser [EMAIL PROTECTED] wrote: Hi, I am new to R and am still trying to get a grip of it. I have data in this format: Run Lab Batch Y 1 1 1 1 608.781 2 2

[R] Which genetic optimization package allows customized crossover and mutation operation

2006-11-07 Thread sun
Hi, I am looking for genetic optimization package that allow to define my own chromosome solution and crossover/mutation opoerations. I checked genoud and genopt, not with much effort of 'cause, with no luck. Any one can shed some light on this? thanks.

Re: [R] Boxplot

2006-11-07 Thread Chuck Cleland
Benjamin Dickgiesser wrote: Hi, I am new to R and am still trying to get a grip of it. I have data in this format: Run Lab Batch Y 1 1 1 1 608.781 2 2 1 2 569.670 3 3 1 1 689.556 4 4 1 2 747.541 5 5 1 1 618.134 6 6 1 2

Re: [R] question on multilevel modeling

2006-11-07 Thread Christine A. Calmes
Thank you for your quick response. Basically, I am trying to test a psychological model in which a person's level of passive, negative communication with others in their environment (CORUMTO) on one week predicts their level of depression on the following week (BDIAFTER) controlling for their

Re: [R] Data frames in files - and - SQL with data frames

2006-11-07 Thread Jerome Asselin
On Mon, 2006-11-06 at 15:57 -0300, Eduardo Henrique Altieri wrote: Since the databases that I handle with are very large, I need answers to some questions: 1) Can I work with R data frames like databases in SAS, that is, storing data frames in files instead of in memory? 2) Can I use SQL

Re: [R] Comparison between GARCH and ARMA

2006-11-07 Thread Leeds, Mark \(IED\)
Hi : I'm a R novice but I consider myself reasonably versed in time series related material and I have never heard of an equivalence between Garch(1,1) for volatility and an ARMA(1,1) in the squared returns and I'm almost sure there isn't. There are various problems with what you wrote. 1) r(t)

[R] question on multilevel modeling

2006-11-07 Thread Dave Atkins
Christine-- You have two and only two individuals per dyad; when you try to fit random slopes at level-2 (within couples), you are attempting to estimate an intercept, slope, and covariance for each individual. Basically, you don't have enough data to do it. If you restrict yourself to a

Re: [R] Better way to create tables of mean standard deviations

2006-11-07 Thread Benjamin Dickgiesser
Thank you, that was exactly what I was looking for. On 11/7/06, hadley wickham [EMAIL PROTECTED] wrote: I can only think of rather complex ways to solve the labeling issue... I would appreciate it if someone could point out if there are better/cleaner/easier ways of achieving what

[R] snow's makeCluster hanging (using Rmpi)

2006-11-07 Thread Randall C Johnson [Contr.]
Hello everyone, I've been fiddling around with the snow and Rmpi packages on my new Intel Mac, and have run into a few problems. When I make a cluster on my machine, both slaves start up just fine, and everything works as expected. When I try to make a cluster including another networked machine

Re: [R] Better way to create tables of mean standard deviations

2006-11-07 Thread hadley wickham
With the reshape package, I'd do it like this: df - data.frame(LAB = rep(1:8, each=60), BATCH = rep(c(1,2), 240), Y =rnorm(480)) dfm - melt(df, measured=Y) Should be dfm - melt(df, measure.var=Y) (thanks to Chuck for pointing that out) cast(dfm, LAB ~ ., c(mean, sd, length)) cast(dfm,

[R] data frames re-ordering and naming columns

2006-11-07 Thread Jabez Wilson
Dear all, I have read in a table using read.table(). The data frame looks like this: my_table V1 V2 1 3 320 2 2 230 3 3 300 4 2 220 5 3 320 6 2 210 7 freq size 8 00 9 2 220 102 210 112 220 121 110 132 240 141 110 I

Re: [R] error in format.df when using dec

2006-11-07 Thread Dieter Menne
Rainer M Krug RKrug at sun.ac.za writes: When using format.df with dec, the formating does not work (see code below). format.df(x, dec=2) a b m 1 m 2 1 1.120 3 5 7 2 2.230 4 6 8 This is the same bug introduced in the latest version

[R] Extracting parameters for Gamma Distribution

2006-11-07 Thread yongchuan
I'm doing a cox regression with frailty: model - coxph(Surv(Start,Stop,Terminated)~ X + frailty(id),table) I understand that model$frail returns the group level frailty terms. Does this mean this is the average of the frailty values for the respective groups? Also, if I'm fitting it to a gamma

[R] OBS in Column 1

2006-11-07 Thread Thorsten Muehge
Hello R Freaks, is there a way to omit the counts in the first column of a data.frame. Thanks a lot for your help Thorsten __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] RE : avoiding a loop: cumsum-like

2006-11-07 Thread GOUACHE David
Thanks Petr for taking a stab at it. I have yet to figure out a way to do it, but if I do I'll post it. Cheers David -Message d'origine- De : Petr Pikal [mailto:[EMAIL PROTECTED] Envoyé : vendredi 3 novembre 2006 09:05 À : GOUACHE David; r-help@stat.math.ethz.ch Objet : Re: [R] avoiding

Re: [R] OBS in Column 1

2006-11-07 Thread Chuck Cleland
Thorsten Muehge wrote: Hello R Freaks, I think it's been a few years since we were last referred to as freaks (http://finzi.psych.upenn.edu/R/Rhelp02a/archive/4433.html). is there a way to omit the counts in the first column of a data.frame. I'm not sure what you mean, but does this help?

[R] help

2006-11-07 Thread liu, jcheng
hi, experts i do additive models analysis by mgcv. i want to extract every smoothing componets from the gam object. how can i do ? Thanks! -- Sincerely yours, Liu, jcheng Department of Biomedical Engineering, School of Medicine, Tsinghua University, Beijing, 100084, China.

Re: [R] wrong fill colors in polygon-map

2006-11-07 Thread Frosch, Katharina
Dear Roger: Thank you for your help and the hint with the R-sig-geo list (next time I'll post directly to it)! I went again through all points you mentioned: - polygons and rows of data are in the same order - the number of polygons and data rows is identical - I experimented with different

[R] Using Teststatistics (F-Test, T.Test, Wilcox test) and recommended graph

2006-11-07 Thread Benjamin Dickgiesser
Hi it would be nice if someone could tell me if I used the tests correctly in the following code. I am trying to create a 2-tailed i) F test for equality of variances ii) t-test for equality of means iii) Wilcoxon test for equality of means data.ceramic - read.table(ceramic.dat,header=TRUE)

Re: [R] snow's makeCluster hanging (using Rmpi)

2006-11-07 Thread Ramon Diaz-Uriarte
On Tuesday 07 November 2006 15:56, Randall C Johnson [Contr.] wrote: Hello everyone, I've been fiddling around with the snow and Rmpi packages on my new Intel Mac, and have run into a few problems. When I make a cluster on my machine, both slaves start up just fine, and everything works as

[R] reading data in extreme toolkit

2006-11-07 Thread amna khan
Sir I am very new user of R language. I have a problem. I have imported data on R console and then i used save workspace option to save data. Is it right way to save data. Then to read data in extremes toolkit using saved workspace I got the following messages Package extRemes: For a tutorial

Re: [R] Complex plotting problem

2006-11-07 Thread Greg Snow
Others have given some fairly basic solutions, but if you want the lines to change color along their length instead of each segment being a constant color, then there are a couple of other options. One is to create the plot using a solid color, then use image manipulation software like

Re: [R] snow's makeCluster hanging (using Rmpi)

2006-11-07 Thread Luke Tierney
The most likely culprit is firewall settings. Something like tcpdump may help to confirm that. Working with a stand-alone example from Rmpi may also help. Best, luke On Tue, 7 Nov 2006, Randall C Johnson [Contr.] wrote: Hello everyone, I've been fiddling around with the snow and Rmpi

[R] Nemenyi test for two way layout data.

2006-11-07 Thread Oscar Camilo Ortiz Ortega
I am trying to do a Nonparametric Nemenyi test for multiple comparison in a two way layout data because I need to know the exact distribution. I don´t know if this test is in the R software. I just found a Nemenyi test for a one way design. But in Hollander book the Nemenyi test is in page 253

[R] Help on processing an in-house apps timer file

2006-11-07 Thread Bin Chen
Hi, Our in-house AS400 based application produce a timer file as follows: TranName,Date Time, TimeA,A+B, TimeB MAC00029,20061027 112500.030,703,703,0 MAC00029,20061027 112500.342,703,719,16 MAC00056,20061027 112500.920,484,500,16 MAC00029,20061027 112501.186,812,812,0 MAC00029,20061027

Re: [R] stacking the data elements in the list

2006-11-07 Thread Im, Kelly
Hello, I have a (rather simple) data manipulation question.. I have a list with many datasets within, each dataset has observations in a format which looks like id x1 x2 x3 x4 x5 x6 y1 y2 y3 y4 y5 y6 how can I stack them so that it'll be id x1 x2 x3 x4 x5 x6 id y1 y2 y3 y4 y5 y6 for each

Re: [R] snow's makeCluster hanging (using Rmpi)

2006-11-07 Thread Randall C Johnson [Contr.]
On 11/7/06 11:28 AM, Ramon Diaz-Uriarte [EMAIL PROTECTED] wrote: On Tuesday 07 November 2006 15:56, Randall C Johnson [Contr.] wrote: Hello everyone, I've been fiddling around with the snow and Rmpi packages on my new Intel Mac, and have run into a few problems. When I make a cluster on my

Re: [R] Date, date, POSIX question

2006-11-07 Thread Martin Maechler
Joe == Joe Byers [EMAIL PROTECTED] on Sun, 05 Nov 2006 08:23:46 -0600 writes: Joe Gabor, Thank you very much. That is a wonderful Joe article and will help very much. Might I ask which Joe date schema do you prefer? The only scheme that is part of standard R is the POSIX

Re: [R] Comparison between GARCH and ARMA

2006-11-07 Thread Wensui Liu
Mark, I totally agree that it doesn't make sense to compare arma with garch. but to some extent, garch can be considered arma for conditional variance. similarly, arch can be considered ma for conditional variance. the above is just my understanding, which might not be correct. thanks. On

[R] subsetting a matrix and filling other

2006-11-07 Thread antonio rodriguez
Hi, Having a matrix F(189,6575) I want to do this: z1-subset(F[,1], F[,1] = 5 F[,1] = 10) . . . z189-subset(F[,189], F[,189] = 5 F[,189] = 10) I would prefer to have an empty matrix, say 'z' in order to fill its columns with the output of subsetting F. But each of the subsets can differ in

Re: [R] subsetting a matrix and filling other

2006-11-07 Thread Christos Hatzis
Use a list to store the partial matrices: z - vector(list, 189) for(i in 1:189) z[[i]] - subset(...) -Christos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of antonio rodriguez Sent: Tuesday, November 07, 2006 2:01 PM To: R-Help Subject: [R]

Re: [R] Date, date, POSIX question

2006-11-07 Thread Joe Byers
Martin, Thank you for your comments. Joe Martin Maechler wrote: Joe == Joe Byers [EMAIL PROTECTED] on Sun, 05 Nov 2006 08:23:46 -0600 writes: Joe Gabor, Thank you very much. That is a wonderful Joe article and will help very much. Might I ask which Joe

Re: [R] CPU or memory

2006-11-07 Thread John C Frain
*Can I extend Taka's question?* ** *Many of my programs in (mainly simulations in R which are cpu bound) on a year old PC ( Intel(R) Pentium(R) M processor 1.73GHz or Dell GX380 with 2.8Gh Pentium) are taking hours and perhaps days to complete on a one year old PC. I am looking at an upgrade but

Re: [R] subsetting a matrix and filling other

2006-11-07 Thread antonio rodriguez
Christos Hatzis escribió: Use a list to store the partial matrices: z - vector(list, 189) for(i in 1:189) z[[i]] - subset(...) Hi Christos, I've tried it but it died unexpectedly with a (Killed) message and the linux console prompt again. I think I have enough memory (512) and a

[R] December Courses: (1) R/Splus Fundamentals and Programming Techniques (2) Regression Modeling Strategies in R/Splus

2006-11-07 Thread Sue Turner
XLSolutions Corporation (www.xlsolutions-corp.com) is proud to announce November - December courses: (1) R/Splus Fundamentals and Programming Techniques http://www.xlsolutions-corp.com/Rfund.htm *** San Francisco / December 14-15, 2006

[R] installing packages without being a root?

2006-11-07 Thread ahmet rasit
Hi, I have a problem with installing packages without being a superuser(root) in Linux(Suse 10.0 64bit). I've read the entire FAQ and R-admin but I couldn't find a solution to my problem. I'm the admin of the computer but I want other users to install whatever packages they want. Do you think

Re: [R] wrong fill colors in polygon-map

2006-11-07 Thread Roger Bivand
On Tue, 7 Nov 2006, Frosch, Katharina wrote: Dear Roger: Thank you for your help and the hint with the R-sig-geo list (next time I'll post directly to it)! I went again through all points you mentioned: - polygons and rows of data are in the same order - the number of polygons and data

Re: [R] subsetting a matrix and filling other. Solved

2006-11-07 Thread antonio rodriguez
antonio rodriguez escribió: Christos Hatzis escribió: Use a list to store the partial matrices: z - vector(list, 189) for(i in 1:189) z[[i]] - subset(...) Hi Christos, I've tried it but it died unexpectedly with a (Killed) message and the linux console prompt again. I think I

[R] RMySQL

2006-11-07 Thread Xiaodong Jin
options(CRAN='http://cran.r-project.org') install.packages(RMySQL, type=source) Warning: unable to access index for repository http://www.ibiblio.org/pub/languages/R/CRAN/src/contrib Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/src/contrib Warning

Re: [R] installing packages without being a root?

2006-11-07 Thread xchen
How about try: R CMD INSTALL -l R_pkg_lib R_pkg ahmet rasit wrote: Hi, I have a problem with installing packages without being a superuser(root) in Linux(Suse 10.0 64bit). I've read the entire FAQ and R-admin but I couldn't find a solution to my problem. I'm the admin of the computer but I

[R] evaluation of 2 matrices: categorical comparison

2006-11-07 Thread Dylan Beaudette
Greetings, I have two matrices, read in from raster data stored in GRASS. Each matrix represents the output of a aggregation process on categorical data (Nomial / Ordinal) - derived from imagery. I have compared these two data by the following methods: * pretending the data is continuous

Re: [R] Probit Scale

2006-11-07 Thread Gregor Gorjanc
nelson - nelson1977 at gmail.com writes: Hi all! i search but i found no info, so i'm heere to ask you! How can i plot a graph using the probit scale on y axes? Not that I know, however you can transform y values via pnorm() i.e. plot(x=x, y=pnorm(q=y, ...)) Gregor

Re: [R] CPU or memory

2006-11-07 Thread bogdan romocea
Does any one know of comparisons of the Pentium 9x0, Pentium(r) Extreme/Core 2 Duo, AMD(r) Athlon(r) 64 , AMD(r) Athlon(r) 64 FX/Dual Core AM2 and similar chips when used for this kind of work. I think your best option, by far, is to answer the question on your own. Put R and your programs on

[R] solve computationally singular

2006-11-07 Thread xchen
Hi uRsers, when inverting a 2 by 2 matrix using solve, I encountered a error message: solve.default(sigma, tol = 1e-07) : system is computationally singular: reciprocal condition number = 1.7671e-017 and then I test the determinant of this matrix: 6.341393e-06. In my program, I have a

Re: [R] Comparison between GARCH and ARMA

2006-11-07 Thread Hannu Kahra
A GARCH model can be regarded as an application of the ARMA idea to the squared innovation series. See, e.g. Ruey S. Tsay, Analysis of Financial Time Series, Wiley, 2nd edition, page 114. Hannu On 11/7/06, Wensui Liu [EMAIL PROTECTED] wrote: Mark, I totally agree that it doesn't make sense

Re: [R] Comparison between GARCH and ARMA

2006-11-07 Thread Leeds, Mark \(IED\)
but not the return squared squared which is what was written previously. . From: Hannu Kahra [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 3:54 PM To: Wensui Liu Cc: Leeds, Mark (IED); r-help@stat.math.ethz.ch; Megh Dal Subject: Re: [R] Comparison

Re: [R] Comparison between GARCH and ARMA

2006-11-07 Thread Hannu Kahra
Except in the case of zero means, that is point (7) in your previous mail. On 11/7/06, Leeds, Mark (IED) [EMAIL PROTECTED] wrote: but not the return squared squared which is what was written previously. . -- *From:* Hannu Kahra [mailto:[EMAIL PROTECTED]

[R] clustering package with constraints (advice)?

2006-11-07 Thread Jeff D. Hamann
R-gurus, I'm looking for (a) clustering method(s) (package(s)) that allow users to add constraints. I would like to be able to use a currently existing package and to include constraints that can be passed as functions of the data. If that's not possible, can someone recommend a package that

[R] solve computationally singular

2006-11-07 Thread xchen
Hi uRsers, when inverting a 2 by 2 matrix using solve, I encountered a error message: solve.default(sigma, tol = 1e-07) : system is computationally singular: reciprocal condition number = 1.7671e-017 and then I test the determinant of this matrix: 6.341393e-06. In my program, I have a

[R] reading VERY large binary files

2006-11-07 Thread Matt Anthony
Hello, I am trying to read in elements out of a very large binary file ... the total file is 4 gigs. I want to select rows out of the file, and the current procedure I run works but is prohibitively slow (takes more than a day to run and still won't complete). Is there any faster way to

[R] solve computationally singular

2006-11-07 Thread xchen
Hi uRsers, when inverting a 2 by 2 matrix using solve, I encountered a error message: solve.default(sigma, tol = 1e-07) : system is computationally singular: reciprocal condition number = 1.7671e-017 and then I test the determinant of this matrix: 6.341393e-06. In my program, I have a

Re: [R] Reformat a data frame

2006-11-07 Thread Gabor Grothendieck
In addition to the reshape solution posted one could use melt from the reshape package: melt(df1, id = 1:2) On 11/7/06, Thorsten Muehge [EMAIL PROTECTED] wrote: Hello Experts, how do I reformat a data frame in the way described below: df1: IDdesc resist thick temp 1 4711

Re: [R] solve computationally singular

2006-11-07 Thread Ravi Varadhan
For heaven's sake, please stop sending repeat emails and send your R code that can reproduce the error. Ravi. --- Ravi Varadhan, Ph.D. Assistant Professor, The Center on Aging and Health Division of Geriatric

[R] gamm(): nested tensor product smooths

2006-11-07 Thread Fabian Scheipl
I'd like to compare tests based on the mixed model representation of additive models, testing among others y=f(x1)+f(x2) vs y=f(x1)+f(x2)+f(x1,x2) (testing for additivity) In mixed model representation, where X represents the unpenalized part of the spline functions and Z the wiggly parts,

Re: [R] Reformat a data frame

2006-11-07 Thread Michael Jerosch-Herold
You want to reshape from wide into long format: see help(reshape). For your example this should look something like df2 - reshape(df1, varying=list(c(resist,thick,temp)), direction=long, v.names=c(Value), timevar=Param, idvar=ID,

[R] have I an actual matrix?

2006-11-07 Thread Ricardo Rodríguez - Your EPEC ICT Team
Hi all! I do hope question from newcomers are wellcome here! Thanks in advance. Trying to catch up and to acquired the needed background to easily read R documents it is being a bit hard to me to get into the required concepts to deal with data. I am trying to get data from a MySQL database

[R] chi.test in R

2006-11-07 Thread downunder
Hi all. I need some help computing multidimensional pvalues of a multivariate data set. chisq.test(x[,1],x[,2])$p.value i need a command or loop that creates me a vector or a matrix (each variabe with each variable) would be even better for the p.values of the variables of a data set.

Re: [R] have I an actual matrix?

2006-11-07 Thread Michael Kubovy
On Nov 7, 2006, at 6:25 PM, Ricardo Rodríguez - Your EPEC ICT Team wrote: library(RMySQL) con - dbConnect(dbDriver (MySQL),host='localhost',username='root',dbname='ibdona') rs - dbGetQuery (con,select n,year from ibdona.library_location) dbDisconnect(con) Graph - barplot(rs) And here

Re: [R] reading VERY large binary files

2006-11-07 Thread Duncan Murdoch
On 11/7/2006 4:54 PM, Matt Anthony wrote: Hello, I am trying to read in elements out of a very large binary file ... the total file is 4 gigs. I want to select rows out of the file, and the current procedure I run works but is prohibitively slow (takes more than a day to run and still

[R] combining dataframes with different numbers of columns

2006-11-07 Thread Denis Chabot
Dear list members, I have to combine dataframes together. However they contain different numbers of variables. It is possible that all the variables in the dataframe with fewer variables are contained in the dataframe with more variables, though it is not always the case. There are key

Re: [R] combining dataframes with different numbers of columns

2006-11-07 Thread hadley wickham
On 11/7/06, Denis Chabot [EMAIL PROTECTED] wrote: Dear list members, I have to combine dataframes together. However they contain different numbers of variables. It is possible that all the variables in the dataframe with fewer variables are contained in the dataframe with more variables,

Re: [R] combining dataframes with different numbers of columns

2006-11-07 Thread Stephen D. Weigand
Denis, On Nov 7, 2006, at 8:30 PM, Denis Chabot wrote: Dear list members, I have to combine dataframes together. However they contain different numbers of variables. It is possible that all the variables in the dataframe with fewer variables are contained in the dataframe with more

[R] nls

2006-11-07 Thread Xiaodong Jin
y [1] 1 11 42 64 108 173 214 t [1] 1 2 3 4 5 6 7 nls(1/y ~ c*exp(-a*b*t)+1/b, start=list(a=0.001,b=250,c=5), trace=TRUE) 29.93322 :0.001 250.000 5.000 Error in numericDeriv(form[[3]], names(ind), env) : Missing value or an infinity produced when evaluating the

Re: [R] combining dataframes with different numbers of columns

2006-11-07 Thread Sundar Dorai-Raj
hadley wickham said the following on 11/7/2006 8:46 PM: On 11/7/06, Denis Chabot [EMAIL PROTECTED] wrote: Dear list members, I have to combine dataframes together. However they contain different numbers of variables. It is possible that all the variables in the dataframe with fewer

[R] chisq test with for loop

2006-11-07 Thread downunder
Hi all. i am desperating. i need a matrix of p.values from an chi square test. i had it already work but than my computer collapsed when taking the whole data set 800x260 into account. i am sure it looked like this but it doesn't work now. can anybody help me? thanks in advance.

Re: [R] combining dataframes with different numbers of columns

2006-11-07 Thread hadley wickham
Or, try this: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/77358.html It's interesting to compare your implementation: rbind.all - function(...) { x - list(...) cn - unique(unlist(lapply(x, colnames))) for(i in seq(along = x)) { if(any(m - !cn %in% colnames(x[[i]]))) {

[R] query in R

2006-11-07 Thread Xiaodong Jin
how to realize the following SQL command in R? select distinct A, B, count(C) from TABLE group by A, B ; quit; Best Regards - Sponsored Link Get a free Motorola Razr! Today Only! Choose Cingular, Sprint, Verizon, Alltel, or T-Mobile.

Re: [R] combining dataframes with different numbers of columns

2006-11-07 Thread Denis Chabot
Thanks you very much Hadley, Stephen, and Sundar, your suggestions all solve my problem, even if the narrower dataframe contains variables that are new to the wider dataframe. I'm sure glad I took the time to write instead of pursuing with my ugly and time-consuming solution. Denis Dear

  1   2   >