Re: [R] RDCOMServer for R 2.0.1 + Windows ?

2005-04-04 Thread Prof Brian Ripley
This is about an Omegahat package. Especially for packages not on CRAN, please ask the maintainer in the first instance. There were Omegahat mailing lists: I do not know if they are currently operational but this does indicate that R-help is not the appropriate place to ask. Your questions are

[R] need any advises for code optimization.

2005-04-04 Thread Wladimir Eremeev
Dear colleagues, I have the following code. This code is to 'filter' the data set. It works on the data frame 'whole' with four numeric columns: a,b,d, and c. Every row in the data frame is considered as a point in 3-D space. Variables a,b, and d are the point's coordinates, and c is its

[R] emacs + R?

2005-04-04 Thread Giorgio Corani
Dear All, As far I as I have understood reading both your past posting and the documentation, in order to have the command-line completion facility, I have to run R within emacs. However, as I try to start R within emacs as recommended: C-u M-x R emacs answers [no match] the same if I provide the

RE: [R] Generating a binomial random variable correlated with a

2005-04-04 Thread Ted Harding
On 03-Apr-05 Ashraf Chaudhary wrote: Hi All: I would like to generate a binomial random variable that correlates with a normal random variables with a specified correlation. Off course, the correlation coefficient would not be same at each run because of randomness. I greatly appreciate your

[R] Object item extraction

2005-04-04 Thread Smit, R. \(Robin\) \(IenT\)
Hello I am able to extract partial regression coefficients from a fitted model object model, i.e. model - lm(var.sel.gkm, weights = count.gkm, data = DATA) summary(model) write.table(model$coef, file = C:/coef_CO_gkm.txt, row.names = TRUE, col.names = TRUE) I was wondering if anyone could

[R] Handling very large integers with factorial and combinat (nCm)

2005-04-04 Thread Marco Chiarandini
Dear list, perhpas this question is more suitable for R-dev but since I am not really a developer I post it here first. Apparently the following lines do not create any problem in R: library(combinat) r - 20; b - 2; sum( sapply(0:r,function(x) nCm(r,x)^(2*b)) ) 2^64 while in C I obtain an

RE: [R] Object item extraction

2005-04-04 Thread Eric Lecoutre
Any R output is an object you can manipulate basically using exctractions functions $, [ and [[ To look at the content of the object, try: str(model) And (in this case) str(summary(model)) Then you can extract what you need, such as: summary(model)$adj.r.squared [1] 0.02158191(an

Re: [R] Generating a binomial random variable correlated with a normalrandom variable

2005-04-04 Thread Dimitris Rizopoulos
one idea is to consider that the underlying (for ease normally distributed) latent variables that produce the Bernoulli trials are correlated with your original normal random variable. I hope it helps. Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public

Re: [R] Handling very large integers with factorial and combinat (nCm)

2005-04-04 Thread Prof Brian Ripley
On Mon, 4 Apr 2005, Marco Chiarandini wrote: Dear list, perhpas this question is more suitable for R-dev but since I am not really a developer I post it here first. Apparently the following lines do not create any problem in R: library(combinat) r - 20; b - 2; sum( sapply(0:r,function(x)

Re: [R] need any advises for code optimization.

2005-04-04 Thread Rich FitzJohn
Hi, One fruitful course for optimisation is to vectorise wherever possible, and avoid for-loops. Something like the code below might be a good place to start. = ## Generate a thousand rows of data cube.half.size - 2 mult.sigma - 2 n - 1000 whole - data.frame(a=runif(n), b=runif(n),

Re: [R] emacs + R?

2005-04-04 Thread Federico Calboli
On Mon, 2005-04-04 at 10:11 +0200, Giorgio Corani wrote: Dear All, As far I as I have understood reading both your past posting and the documentation, in order to have the command-line completion facility, I have to run R within emacs. However, as I try to start R within emacs as

[R] plotting mathematical notation and values substitution

2005-04-04 Thread Luca Scrucca
Dear R-users, I'm trying to add a title on a plot with both mathematical notation and values substitution. I read the documentation and search the mailing list but I was not able to solve my problem. Actually, there is a message by Uwe Ligges on June 2003 which addresses a question very close to

RE: [R] emacs + R?

2005-04-04 Thread Rau, Roland
Hi, However, as I try to start R within emacs as recommended: C-u M-x R emacs answers [no match] the same if I provide the whole path to the executable: C-u M-x /usr/bin/R[no match] given you have installed ESS (Emacs Speaks Statistics), you can start an R session within Emacs

Re[2]: [R] need any advises for code optimization.

2005-04-04 Thread Wladimir Eremeev
Dear Rich, Thank you for reply. I think, optimization, you offered will satisfy my needs. I don't completely understand the following. RF ## And wrap the original in a function for comparison: RF ## This does not subset the way you want: RF ## whole[-which(row.names(to.drop) %in%

Re: Re[2]: [R] need any advises for code optimization.

2005-04-04 Thread Rich FitzJohn
Hi again, The arguments to %in% are in the wrong order in your version. Because of that, the statement row.names(to.drop) %in% row.names(whole) will be TRUE for the first nrow(to.drop) elements, and FALSE for the remainder. To fix it, just switch the order around, or use the simpler version:

[R] Change density and angle in barplot

2005-04-04 Thread Jan Sabee
Dear R user, I want to change each density and angle with symbol +,-,o,# and *. How can I do that? library(gplots) barplot2(VADeaths, density=c(5,7,11,15,17), angle=c(65,-45,45,-45,90), col = black, legend = rownames(VADeaths)) title(main = list(Death Rates

Re: [R] plotting mathematical notation and values substitution

2005-04-04 Thread Rich FitzJohn
Gidday, See ?plotmath and demo(plotmath) for lots of information on plotting with mathematical symbols. This produces what you seem to be after (paste() being the missing ingredient): plot(1:10, main=substitute(paste(Monotonic Multigamma run ( *, list(n==len, theta==t1), * )),

Re: [R] plotting mathematical notation and values substitution

2005-04-04 Thread Peter Dalgaard
Luca Scrucca [EMAIL PROTECTED] writes: Dear R-users, I'm trying to add a title on a plot with both mathematical notation and values substitution. I read the documentation and search the mailing list but I was not able to solve my problem. Actually, there is a message by Uwe Ligges on June

RE: [R] How to extrct F value

2005-04-04 Thread John Fox
Dear Xin Meng, This output presumably was produced by summarizing an object produced by aov(). The trick to figuring out what you want to do is to examine the structure of the summary object (say, sumry), via str(sumry). In this case sumry[[Error: Within]][[1]]$F value[1] should do what you

Categorizing functions (was: [R] is there a function like %in% for characters?)

2005-04-04 Thread Duncan Murdoch
On Sat, 2 Apr 2005 23:00:43 -0500, Terry Mu [EMAIL PROTECTED] wrote : thx, that's perfect. I thought of grep(), it also can do this. I wonder if there is a document or book that explains things categorically so it's easy to look up a function. The HTML help does this: try help.start(), and

Re: [R] Error in save.image(): image could not be renamed

2005-04-04 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: Hello, I am doing intensive tests on SVMs parameter selection. Once a while I got the error: Error in save.image(): image could not be renamed and is left in .RDataTmp1 I cannot use the information saves in .RDataTmp1. Why? Anything wrong with load(.RDataTmp1)

Re: [R] RMySQL question

2005-04-04 Thread Don MacQueen
Use the rownames() function to set the rownames equal to your first column, and then drop the first column. I don't know if there is a way to do it during retrieval from MySQL. -Don At 11:10 PM +0200 4/2/05, simone gabbriellini wrote: Dear List, I have this little problem: I work with adiacency

[R] mysql retrive question

2005-04-04 Thread simone gabbriellini
hello R-Users, I have this simple but not for me question: I do: res-dbSendQuery(con, SELECT * FROM tabellaProva) myDataFrame-fetch(res) myDataMatrix-as.matrix(myDataFrame[,-1]) namerows(myDataMatrix)-as.character(myDataFrame[,1]) and I have: io tu io 0 1 tu 1 0 my problem is that the

[R] double backslashes in usage section of .Rd files

2005-04-04 Thread joerg van den hoff
I have written a package, where a function definition includes a regexp pattern including double backslashes, such as myfunction - function (pattern = .*\\.txt$) when I R CMD CHECK the corresponding .Rd file, I get warnings (code/documentation mismatch), if I enforce two backslashes in the

[R] scan html: sep = td

2005-04-04 Thread Christoph Lehmann
Hi I try to import html text and I need to split the fields at each td or /td entry How can I succeed? sep = 'td' doens't yield the right result thanks for hints __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] help with kolmogorov smirnov test

2005-04-04 Thread Agnes Gault
Hello! I am an 'R beginner'. I am trying to check if my data follow a negative binomial function. the command i've typed in is: nbdo=rnegbin(58,mu=27.82759,theta=0.7349851) ks.test(do$DO,nbdo) Each time i do that, p given is different and i get this warning message: 'Warning message: cannot

Re: [R] mysql retrive question

2005-04-04 Thread Peter Dalgaard
simone gabbriellini [EMAIL PROTECTED] writes: hello R-Users, I have this simple but not for me question: I do: res-dbSendQuery(con, SELECT * FROM tabellaProva) myDataFrame-fetch(res) myDataMatrix-as.matrix(myDataFrame[,-1]) namerows(myDataMatrix)-as.character(myDataFrame[,1])

Re: [R] double backslashes in usage section of .Rd files

2005-04-04 Thread Uwe Ligges
joerg van den hoff wrote: I have written a package, where a function definition includes a regexp pattern including double backslashes, such as myfunction - function (pattern = .*\\.txt$) when I R CMD CHECK the corresponding .Rd file, I get warnings (code/documentation mismatch), if I enforce

Re: [R] plotting mathematical notation and values substitution

2005-04-04 Thread Sundar Dorai-Raj
Luca Scrucca wrote on 4/4/2005 1:50 PM: Dear R-users, I'm trying to add a title on a plot with both mathematical notation and values substitution. I read the documentation and search the mailing list but I was not able to solve my problem. Actually, there is a message by Uwe Ligges on June 2003

Re: [R] scan html: sep = td

2005-04-04 Thread Uwe Ligges
Christoph Lehmann wrote: Hi I try to import html text and I need to split the fields at each td or /td entry How can I succeed? sep = 'td' doens't yield the right result If it fits pairwise together, use sep=c(td, /td) if not, you can read the whole lot with readLines and strsplit for both

[R] help with kolmogorov smirnov test

2005-04-04 Thread Ken Knoblauch
What does 'with ties in' mean? with some identical elements (par ex., au moins une paire ex-equo) HTH Ken Knoblauch Inserm U371, Cerveau et Vision Department of Cognitive Neurosciences 18 avenue du Doyen Lepine 69675 Bron cedex France tel: +33 (0)4 72 91 34 77 fax: +33

Re: [R] help with kolmogorov smirnov test

2005-04-04 Thread Uwe Ligges
Agnes Gault wrote: Hello! I am an 'R beginner'. I am trying to check if my data follow a negative binomial function. the command i've typed in is: nbdo=rnegbin(58,mu=27.82759,theta=0.7349851) ks.test(do$DO,nbdo) Each time i do that, p given is different and i get this warning message:

Re: [R] RMySQL question

2005-04-04 Thread David James
simone gabbriellini wrote: Dear List, I have this little problem: I work with adiacency matrix like: data me you me0 1 you 1 0 I store those matrix in a mysql database actually I use RMySQL with: res-dbSendQuery(connection, SELECT * FROM table)

RE: [R] scan html: sep = td

2005-04-04 Thread Eric Lecoutre
You can import the whole thing and use on it strsplit ?strsplit Eric Eric Lecoutre UCL / Institut de Statistique Voie du Roman Pays, 20 1348 Louvain-la-Neuve Belgium tel: (+32)(0)10473050 [EMAIL PROTECTED] http://www.stat.ucl.ac.be/ISpersonnel/lecoutre If the statistics are boring, then

Re: [R] scan html: sep = td

2005-04-04 Thread Uwe Ligges
Christoph Lehmann wrote: entry from html: tr bgcolor=#9090f0td align=rightbBM/b/tdtd 0.952/tdtd 0.136/tdtd 6.984/tdtd0.00/td/tr tr bgcolor=#9090f0td align=rightbBH/b/tdtd 1.338/tdtd 0.136/tdtd 9.821/tdtd0.00/td/tr using left.data- scan(paste(path, left.file, sep = ), what =

Re: [R] mysql retrive question

2005-04-04 Thread David James
simone gabbriellini wrote: hello R-Users, I have this simple but not for me question: I do: res-dbSendQuery(con, SELECT * FROM tabellaProva) myDataFrame-fetch(res) myDataMatrix-as.matrix(myDataFrame[,-1]) namerows(myDataMatrix)-as.character(myDataFrame[,1]) and I have:

Re: [R] help with kolmogorov smirnov test

2005-04-04 Thread James Reilly
Agnes Gault wrote: Hello! I am an 'R beginner'. I am trying to check if my data follow a negative binomial function. the command i've typed in is: nbdo=rnegbin(58,mu=27.82759,theta=0.7349851) ks.test(do$DO,nbdo) Each time i do that, p given is different The p-values are different each time

RE: [R] Amount of memory under different OS

2005-04-04 Thread bogdan romocea
You need another OS. Standard/32-bit Windows (XP, 2000 etc) can't use more than 4 GB of RAM. Anyway, if you try to buy a box with 16 GB of RAM, the seller will probably warn you about Windows and recommend a suitable OS. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

[R] Data set for loglinear analysis

2005-04-04 Thread Warfield Jr., Joseph D.
Dear users I need to perform a loglinear analysis of a real data set for a course project. I need a real data set with contingency tables in at least 3 dimensional, each with more than 2 levels. Thanks Joe Warfield [[alternative HTML version deleted]]

[R] coalesce in its

2005-04-04 Thread Omar Lakkis
I have two data sets that I converted to its objects to get: ts1 date settle 1 2000-09-29 107.830 2 2000-10-02 108.210 3 2000-10-03 108.800 4 2000-10-04 108.800 5 2000-10-05 109.155 ts2 date settle 1 2000-09-25 107.610 2 2000-09-26 107.585 3 2000-09-27 107.385 4 2000-09-28

[R] a question about box counting

2005-04-04 Thread Rajarshi Guha
Hi, I have a set of x,y data points and each data point lies between (0,0) and (1,1). Of this set I have selected all those that lie in the lower triangle (of the plot of these points). What I would like to do is to divide the region (0,0) to (1,1) into cells of say, side = 0.01 and then count

Re: [R] coalesce in its

2005-04-04 Thread Achim Zeileis
On Mon, 4 Apr 2005 13:46:46 -0400 Omar Lakkis wrote: I have two data sets that I converted to its objects to get: ts1 date settle 1 2000-09-29 107.830 2 2000-10-02 108.210 3 2000-10-03 108.800 4 2000-10-04 108.800 5 2000-10-05 109.155 ts2 date settle 1 2000-09-25

[R] Package 'outliers' (Dixon, Grubbs)

2005-04-04 Thread Lukasz Komsta
Dear useRs, I have just uploaded to CRAN first version of my package outliers for testing data for outlying observations. It contains all types of Dixon and Grubbs test and the Cochran test for outlying variance. Until placing in package collection, the files are also availalble at my

Re: [R] Data set for loglinear analysis

2005-04-04 Thread Kjetil Brinchmann Halvorsen
Warfield Jr., Joseph D. wrote: Dear users I need to perform a loglinear analysis of a real data set for a course project. I need a real data set with contingency tables in at least 3 dimensional, each with more than 2 levels. Thanks Joe Warfield [[alternative HTML version deleted]]

Re: [R] a question about box counting

2005-04-04 Thread Deepayan Sarkar
On Monday 04 April 2005 13:22, Rajarshi Guha wrote: Hi, I have a set of x,y data points and each data point lies between (0,0) and (1,1). Of this set I have selected all those that lie in the lower triangle (of the plot of these points). What I would like to do is to divide the region

Re: [R] Package 'outliers' (Dixon, Grubbs)

2005-04-04 Thread Lukasz Komsta
Dnia 2005-04-04 20:59, Uytkownik Ben Fairbank napisa: Forbidden You don't have permission to access /outliers/ on this server. Bad Options in httpd.conf, just corrected. Thanks. __

[R] custom loss function + nonlinear models

2005-04-04 Thread Christian Mora
Hi all; I'm trying to fit a reparameterization of the assymptotic regression model as that shown in Ratkowsky (1990) page 96. Y~y1+(((y2-y1)*(1-((y2-y3)/(y3-y1))^(2*(X-x1)/(x2-x1/(1-((y2-y3)/(y3-y1))^2)) where y1,y2,y3 are expected-values for X=x1, X=x2, and X=average(x1,x2), respectively.

Re: [R] a question about box counting

2005-04-04 Thread Ray Brownrigg
From: Deepayan Sarkar [EMAIL PROTECTED] Mon, 4 Apr 2005 13:52:48 -0500 On Monday 04 April 2005 13:22, Rajarshi Guha wrote: Hi, I have a set of x,y data points and each data point lies between (0,0) and (1,1). Of this set I have selected all those that lie in the lower triangle (of

Re: [R] custom loss function + nonlinear models

2005-04-04 Thread Kjetil Brinchmann Halvorsen
Christian Mora wrote: Hi all; I'm trying to fit a reparameterization of the assymptotic regression model as that shown in Ratkowsky (1990) page 96. Y~y1+(((y2-y1)*(1-((y2-y3)/(y3-y1))^(2*(X-x1)/(x2-x1/(1-((y2-y3)/(y3-y1))^2)) where y1,y2,y3 are expected-values for X=x1, X=x2, and

Re: [R] a question about box counting

2005-04-04 Thread Rajarshi Guha
On Mon, 2005-04-04 at 14:22 -0400, Rajarshi Guha wrote: Hi, I have a set of x,y data points and each data point lies between (0,0) and (1,1). Of this set I have selected all those that lie in the lower triangle (of the plot of these points). What I would like to do is to divide the region

Re: [R] a question about box counting

2005-04-04 Thread Ray Brownrigg
I said: myfun - function(x, y, ints) { fx - x %/% (1/ints) fy - y %/% (1/ints) txy - hist(fx + ints*fy+ 1, breaks=0:(ints*ints), plot=FALSE)$counts dim(fxy) - c(ints, ints) ^^^ return(txy) } Of course it should be: dim(txy) - c(ints, ints) ^^^ Sorry about that,

[R] locfit and memory allocation

2005-04-04 Thread Mike Hickerson
Hello I am getting memory allocation errors when running a function that uses locfit within a for loop. After 25 or so loops, it gives this error. Error: cannot allocate vector of size 281250 Kb Running on linux cluster with a Gb of RAM. Problem never happens on my OS X (less memory).

RE: [R] a question about box counting

2005-04-04 Thread Ben Fairbank
Perhaps the following, substituting your vectors of x and y for runif(1) x-trunc(100*runif(1)) y-trunc(100*runif(1))/100 length(unique(x+y)) [1] 6390 Ben Fairbank -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rajarshi Guha Sent: Monday,

[R] R package that has (much) the same capabilities as SAS v9 PROC GENMOD

2005-04-04 Thread William M. Grove
I need capabilities, for my data analysis, like the Pinheiro Bates S-Plus/R package nlme() but with binomial family and logit link. I need multiple crossed, possibly interacting fixed effects (age cohort of twin when entered study, sex of twin, sampling method used to acquire twin pair, and

RE: [R] locfit and memory allocation

2005-04-04 Thread Liaw, Andy
The code sniplet you provided is nowhere near correct or sufficient for anyone to help. Please (re-)read the posting guide and try again. Andy From: Mike Hickerson Hello I am getting memory allocation errors when running a function that uses locfit within a for loop. After 25 or so

Re: [R] R package that has (much) the same capabilities as SAS v9 PROC GENMOD

2005-04-04 Thread Simon Blomberg
The questioner clearly wants generalized linear mixed models. lmer in package lme4 may be more appropriate. (Prof. Bates is a co-author.). glmmPQL should do the same job, though, but with less accuracy. Simon. check glm() On Apr 4, 2005 6:46 PM, William M. Grove [EMAIL PROTECTED] wrote: I need

Re: [R] Change density and angle in barplot

2005-04-04 Thread Paul Murrell
Hi Jan Sabee wrote: Dear R user, I want to change each density and angle with symbol +,-,o,# and *. How can I do that? library(gplots) barplot2(VADeaths, density=c(5,7,11,15,17), angle=c(65,-45,45,-45,90), col = black, legend = rownames(VADeaths)) title(main =

Re: [R] hexbin and grid - input data values as coordinates

2005-04-04 Thread Paul Murrell
Hi Thanks Martin and Adai. This gives me a good starting point. Paul Adaikalavan Ramasamy wrote: Thank you to Paul Murrell and Martin Maechler for their help. pushHexport() and the rest of the codes have done the trick. I spent the afternoon trying to code up something that might be used as

[R] exclusion rules for propensity score matchng (pattern rec)

2005-04-04 Thread adiamond
Dear R-list, i have 6 different sets of samples. Each sample has about 5000 observations, with each observation comprised of 150 baseline covariates (X), 125 of which are dichotomous. Roughly 20% of the observations in each sample are treatment and the rest are control units. i am doing

[R] Principle Component Analysis in R

2005-04-04 Thread Brett Stansfield
Dear R Should I be concerned if the loadings to a Principle Component Analysis are as follows: Loadings: Comp.1 Comp.2 Comp.3 Comp.4 X100m -0.500 0.558 0.661 X200m -0.508 0.379 0.362 -0.683 X400m -0.505 -0.274 -0.794 -0.197 X800m -0.486 -0.686 0.486 0.239