RE: [R] RE: adding perspectives to existing persp plots

2004-12-15 Thread Corey Bradshaw
Hi there, Turns out it was a simply 'par' problem I just needed to establish par(new = TRUE) after the first 'persp' plot and prior to coding the 2nd 'persp' plot. Thanks for your suggestions. Corey -Original Message- From: Deepayan Sarkar [mailto:[EMAIL PROTECTED] Sent: Thursday, D

[R] how R outputs?

2004-12-15 Thread xudongyuan
Hi.All and R developers: When I look into the R source code, I have a question.Since R has its own data structure(i.e. SEXP),how does it convert the result to the normal output after it has computed? For example,when I input, >abs(-3) I learned that in R's execution, the expression is par

[R] help with multiple imputation using imp.mix

2004-12-15 Thread Jens Hainmueller
I am desperately trying to impute missing data using 'imp.mix' but always run into this yucky error message to which I cannot find the solution. It's the first time I am using mix and I'm trying really hard to understand, but there's just this one step I don't get...perhaps someone knows the answer

Re: [R] TukeyHSD & Covariates

2004-12-15 Thread Damián Cirelli
I have interactions where I shouldn't so nevermind, I'm a dumb ass. Thanks again __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] TukeyHSD & Covariates

2004-12-15 Thread Damián Cirelli
Here's what I get: > summary(lm(yield ~ prevyield + trt + block)) Call: lm(formula = yield ~ prevyield + trt + block) Residuals: Min 1Q Median 3Q Max -22.616 -9.254 2.051 10.687 19.421 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 38.5797

Re: [R] TukeyHSD & Covariates

2004-12-15 Thread Peter Dalgaard
Damián Cirelli <[EMAIL PROTECTED]> writes: > Dear R gurus, > I have the following model: > > appcov.aov <- aov(yield ~ prevyield + trt + block) > > where prevyield is a continuous numeric covariate and trt and block > are factors (yes, I did factor()!) > Now, when I do a TukeyHSD, my diff's are

[R] TukeyHSD & Covariates

2004-12-15 Thread Damián Cirelli
Dear R gurus, I have the following model: appcov.aov <- aov(yield ~ prevyield + trt + block) where prevyield is a continuous numeric covariate and trt and block are factors (yes, I did factor()!) Now, when I do a TukeyHSD, my diff's are all screwed up! For instance: treatment mean for treatmen "E"

Re: [R] hclust and heatmap - slightly different dendrograms?

2004-12-15 Thread Sean Davis
Hierarchical clustering does NOT give an ordering for the clusters. It only gives the clustering, so order is not invariant. Sean - Original Message - From: "Min-Han Tan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 15, 2004 3:55 PM Subject: [R] hclust and heatm

Re: [R] which

2004-12-15 Thread Chuck Cleland
> which(x < 5 & x > 2) [1] 3 4 From the help page for Logical Operators: ?"!" '&' and '&&' indicate logical AND and '|' and '||' indicate logical OR. The shorter form performs elementwise comparisons in much the same way as arithmetic operators. The longer form evaluates left

[R] hclust and heatmap - slightly different dendrograms?

2004-12-15 Thread Min-Han Tan
Good afternoon, I ran heatmap and hclust on the same matrix x (strictly, I ran heatmap(x), and hclust(dist(t(x))), and realized that the two dendrograms were slightly different, in that the left-right arrangement of one pair of subclusters (columns) was reversed in the two functions (but all indiv

[R] which

2004-12-15 Thread Y. C. Tao
Why the last "which" in the following example doesn't work? Is there a simple way to identify the indices of array elements that meet multiple criteria? Thanks. YC Tao > x<-1:10 > which(x<5) [1] 1 2 3 4 > which(x>2) [1] 3 4 5 6 7 8 9 10 > which(x<5 && x>2) numeric(0)

Re: [R] AUC for logistic regression [was: (no subject)]

2004-12-15 Thread Frank E Harrell Jr
Joe Nocera wrote: I believe that Roman is referring to AUC as the "Area Under Curve" from a Receiver Operating Characteristic. If this indeed your quantity of interest - it can be calculated in R. You can download code at: http://www.bioconductor.org/repository/release1.5/package/Win32/ and/or

Re: [R] AUC for logistic regression [was: (no subject)]

2004-12-15 Thread Bernardo Rangel Tura
At 17:07 15/12/2004, Spencer Graves wrote: Dear R-helper, I would like to compare the AUC of two logistic regression models (same population). Is it possible with R ? Thank you Roman Rouzier Roman If I understand your question You have 2 ROC curve from same dataset. In this case you can use a r

RE: [R] which

2004-12-15 Thread Liaw, Andy
Because you have one too many `&'. Andy > From: Y. C. Tao > > Why the last "which" in the following example doesn't > work? Is there a simple way to identify the indices of > array elements that meet multiple criteria? > > Thanks. > > YC Tao > > > x<-1:10 > > which(x<5) > [1] 1 2 3 4 > > whic

[R] main() in libR?

2004-12-15 Thread Ross Boylan
libR seems to include a main() function. Should it? I'm hoping this simpler question will get more of a response than my previous post about R a la carte :) The evidence that libR includes main() is two-fold. First, when I use nm, I see the _main defined. Second, when I run a program linked to

Re: [R] AUC for logistic regression [was: (no subject)]

2004-12-15 Thread Joe Nocera
I believe that Roman is referring to AUC as the "Area Under Curve" from a Receiver Operating Characteristic. If this indeed your quantity of interest - it can be calculated in R. You can download code at: http://www.bioconductor.org/repository/release1.5/package/Win32/ and/or http://biostat.

RE: [R] AUC for logistic regression [was: (no subject)]

2004-12-15 Thread Berton Gunter
AUC means "Area Under the Curve" and is a common summary statistic for repeated measures experiments (e.g. repeated measurements of serum concentration of a drug in an individual)in PK/PD studies (pharmacokinetic/pharmacodynamic). I think the poster may actually mean "nonlinear regression for log

[R] using Hmisc and Design library

2004-12-15 Thread array chip
Hi all, I encountered a weird problem when using the Design and Hmisc libraries in S-Plus (it worked well in R). I have a data frame called "b", which has 3 columns: "time", "status" and "scores", a sample of the data frame is like: data frame "b": time status scores 1 27 0 -126.7 2 2

RE: [R] AUC for logistic regression [was: (no subject)]

2004-12-15 Thread Liaw, Andy
My guess is `area under the ROC curve'. There's the roc package in BioConductor that I believe can compute this. Andy > From: Spencer Graves > > What's AUC? If you mean AIC (Akaike Information > Criterion), and > if you fit logistic regression using "glm", the help file > says that g

Re: [R] AUC for logistic regression [was: (no subject)]

2004-12-15 Thread Spencer Graves
What's AUC? If you mean AIC (Akaike Information Criterion), and if you fit logistic regression using "glm", the help file says that glm returns an object of class "glm", which is a list containing among other things an attribute aic. For example, suppose you fit a model as follows:

Re: [R] ERROR: installing package indices failed

2004-12-15 Thread Sigal Blay
Turns out that this problem is a propagation of a bug from a Depends package - gdata doesn't import stats in its NAMESPACE file, although it makes use of objects defined in stats like reorder and na.omit. I'm curious as to the reason why 'R CMD check' did not detect this at the source package, an

[R] (no subject)

2004-12-15 Thread rrouzier
Dear R-helper, I would like to compare the AUC of two logistic regression models (same population). Is it possible with R ? Thank you Roman Rouzier [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/ma

[R] backspace key doesn't work correctly

2004-12-15 Thread dederderian
When I am running R, the backspace key deletes the whole word instead of one character. Before I start R, and after I exit R, the backspace key works as it should in my xterm terminal window. This gets really annoying since I make a lot of mistakes while typing and don't always want to retype the w

Re: [R] how to fit a weighted logistic regression?

2004-12-15 Thread Rolf Turner
I was going to say ``Why not just use glm()?'', but when I tried the example given in the original message I got a different but similarly nervous-making warning: Warning in eval(expr, envir, enclos) : non-integer #successes in a binomial glm! Looking into the code I found that th

Re: [R] MIME decoding in Mozilla Thunderbird

2004-12-15 Thread CG Pettersson
Ok, the time consumption could be a problem, I find it quite okay though. My problem is to reach the actual messages. If I use the option File/Attechments/Open, the window that opens just contain a list of all headers from the last 24 hours (from which I just choosed one - as I thought) If I on

Re: [R] R does not support UTF-8 (was german umlaut problem under MacOS)

2004-12-15 Thread joerg van den hoff
Brian D Ripley wrote: You wrote your mail in UTF-8. R does not support UTF-8, and that is both documented and announced on startup in such a locale (at least on OSes with standard-conforming implementations): thanks for clarifying this point. nevertheless: 1. the mail was (on purpose) sent in utf-

Re: [R] question about surf.gls(spatial package) with NA/NaN/infvalues

2004-12-15 Thread Roger Bivand
On Wed, 15 Dec 2004, BUHARD O wrote: > Hi all, > > I need to fit a trend surface to a 3D-dataset with the surf.gls() > function but my data contain missing values. There is just 2 NA in a > total of 360 data points but I can't suppresse the variable associated > with these NA values to the analys

Re: [R] R: optimisation

2004-12-15 Thread Patrick Burns
You don't say what sort of optimisation you have in mind. If you are looking for something that will handle "non-standard" problems, you can have a look at 'genopt' from S Poetry. Patrick Burns Burns Statistics [EMAIL PROTECTED] +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and "

Re: [R] MIME decoding in Mozilla Thunderbird

2004-12-15 Thread Martin Maechler
> "CG" == CG Pettersson <[EMAIL PROTECTED]> > on Wed, 15 Dec 2004 16:43:38 +0100 writes: CG> Ok, the time consumption could be a problem, I find it quite okay though. CG> My problem is to reach the actual messages. CG> If I use the option File/Attechments/Open, the window

RE: [R] can R do the goodman modified multiple regression method?

2004-12-15 Thread John Fox
Dear ronggui, If memory serves me right, this is a relatively early presentation for sociologists of loglinear models for contingency tables (in which all the variables are dichotomous). You can fit such a model in R as a generalised linear model using glm() or via the loglin() function. The latte

Re: [R] R does not support UTF-8 (was german umlaut problem under MacOS)

2004-12-15 Thread Brian D Ripley
You wrote your mail in UTF-8. R does not support UTF-8, and that is both documented and announced on startup in such a locale (at least on OSes with standard-conforming implementations): gannet% env LANG=en_GB.utf8 R R : Copyright 2004, The R Foundation for Statistical Computing Version 2.0.1 (

Re: [R] R: optimisation

2004-12-15 Thread Ingmar Visser
There's also nlm for non-linear newton type minimization, best, ingmar On 12/15/04 3:48 PM, "Clark Allan" <[EMAIL PROTECTED]> wrote: > hi all > > other than optim, optimise, and some other related optimisation > functions are there any optimisation packages in R? > __

Re: [R] MIME decoding in Mozilla Thunderbird

2004-12-15 Thread Frank E Harrell Jr
CG Pettersson wrote: Hello all! I recently switched mail program to Mozilla Thunderbird, running on W2k. Everything works fine, except the MIME-digests from this list. The decoding doesn´t work properly. I had contact with Martin Maechler some time ago, and he suggested a try on this list for id

[R] R: optimisation

2004-12-15 Thread Clark Allan
hi all other than optim, optimise, and some other related optimisation functions are there any optimisation packages in R?__ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-projec

Re: [R] RE: adding perspectives to existing persp plots

2004-12-15 Thread Deepayan Sarkar
On Wednesday 15 December 2004 01:10, Corey Bradshaw wrote: > Thanks, Romain. I've certainly used that to draw lines and points in > the plots produced by 'persp'; however, my problem is that I need to > incorporate an entirely new z function (not just a plane) onto the > same plot (i.e., using the

Re: [R] how to fit a weighted logistic regression?

2004-12-15 Thread Frank E Harrell Jr
Kerry Bush wrote: I tried lrm in library(Design) but there is always some error message. Is this function really doing the weighted logistic regression as maximizing the following likelihood: \sum w_i*(y_i*\beta*x_i-log(1+exp(\beta*x_i))) Does anybody know a better way to fit this kind of model in

RE: [R] Massive clustering job?

2004-12-15 Thread Wiener, Matthew
It sounds like "clara" in package cluster might help. Regards, Matt Wiener -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dan Bolser Sent: Wednesday, December 15, 2004 6:37 AM To: R mailing list Subject: [R] Massive clustering job? Hi, I have ~40,0

[R] german umlaut problem under MacOS

2004-12-15 Thread joerg van den hoff
I did not find this in the archive (hope it isn't there...): the current release of R (2.0.1) for MacOS (10.3.6) seems not to handle german special characters like 'Ã' correctly: > f <- 'Ã' can be entered at the prompt, but echoing the variable yields [1] "\303\274" (I think the unicode of the cha

[R] repeated measures with Poisson

2004-12-15 Thread Andrew Higginson
I'm pretty new to R and I have a stats problem that's got me baffled. I'm trying to carry out a repeated measures test on Poission distributed data, where half the subjects in each block (4 blocks) were treated, and half were controls. Measurements were carried out before and after the treatmen

Re: [R] Best datatype for time-series with irregular ocurrencies

2004-12-15 Thread Achim Zeileis
On Wed, 15 Dec 2004, Diethelm Wuertz wrote: > [EMAIL PROTECTED] wrote: > > >Hello, > > > >Does someone has experience working with time-series where the ocurrencies do > >not happen at regular time spaces? > > > > package fBasics from Rmetrics (www.rmetrics.org) has S4 timeDate and > timeSeries o

Re: [R] Massive clustering job?

2004-12-15 Thread Christian Hennig
Dear Dan, I would think about transforming your columns in such a way (square root, log?) that methods operating on n*p matrices and assuming roughly elliptical within-clusters distributions such as kmeans or clara, or, after dimension reduction, EMclust or fixmahal can be applied. Maybe you can e

Re: [R] Best datatype for time-series with irregular ocurrencies

2004-12-15 Thread Diethelm Wuertz
[EMAIL PROTECTED] wrote: Hello, Does someone has experience working with time-series where the ocurrencies do not happen at regular time spaces? package fBasics from Rmetrics (www.rmetrics.org) has S4 timeDate and timeSeries objects similar to those in SPlus for irregular time series manipulat

Re: [R] Best datatype for time-series with irregular ocurrencies

2004-12-15 Thread Gabor Grothendieck
fe.up.pt> writes: : Does someone has experience working with time-series where the ocurrencies do : not happen at regular time spaces? In one day I can have 20 ocurrencies and in : the following day I can have the double. ts datatype must have regular time : spaces. What is the best way to

[R] Massive clustering job?

2004-12-15 Thread Dan Bolser
Hi, I have ~40,000 rows in a database, each of which contains an id column and 20 additional columns of count data. I want to cluster the rows based on these count vectors. Their are ~1.6 billion possible 'distances' between pairs of vectors (cells in my distance matrix), so I need to do somet

Re: [R] Advice on parsing formulae

2004-12-15 Thread Heather Turner
I think this will do what you want: # Need this function to remove spaces from term labels later on > removeSpace <- function(string) gsub("[[:space:]]", "", string) # Specify which terms are in a "tvar" group # (could remove spaces separately) > tvar <- unname(sapply(c("x:A", "z", "B", "poly(v,

[R] MIME decoding in Mozilla Thunderbird

2004-12-15 Thread CG Pettersson
Hello all! I recently switched mail program to Mozilla Thunderbird, running on W2k. Everything works fine, except the MIME-digests from this list. The decoding doesn´t work properly. I had contact with Martin Maechler some time ago, and he suggested a try on this list for ideas on how to do the

[R] Best datatype for time-series with irregular ocurrencies

2004-12-15 Thread jmoreira
Hello, Does someone has experience working with time-series where the ocurrencies do not happen at regular time spaces? In one day I can have 20 ocurrencies and in the following day I can have the double. ts datatype must have regular time spaces. What is the best way to put the data if I want

[R] question about surf.gls(spatial package) with NA/NaN/inf values

2004-12-15 Thread BUHARD O
Hi all, I need to fit a trend surface to a 3D-dataset with the surf.gls() function but my data contain missing values. There is just 2 NA in a total of 360 data points but I can't suppresse the variable associated with these NA values to the analysis. The problem is surf.gls can't manage with Na/N

Re: [R] adding perspectives to existing persp plots

2004-12-15 Thread Petr Pikal
Hi Corey Did you try to use par(new=TRUE) before ploting the second persp graph? Cheers Petr On 15 Dec 2004 at 10:44, Corey Bradshaw wrote: > I've created a perspective plot using 'persp' in the graphics package. > I'd like to add a second plane of z values to the existing plot, but I > cannot

[R] can R do the goodman modified multiple regression method?

2004-12-15 Thread ronggui
the method is described in the article:goodman leo A.,a modified multiple regression approch to analysis of dischotomous variables",american sociological review 33(hebruary):28-46 thank you in advance:) __ [EMAIL PROTECTED] mailing list https://stat.e

AW: [R] Problem with German special characters

2004-12-15 Thread Wolf, Michael
Dear Prof. Ripley, thanks for your help. Everything is working fine! With best regards Michael Wolf -Ursprüngliche Nachricht- Von: Brian D Ripley [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 15. Dezember 2004 09:01 An: Wolf, Michael Betreff: Re: [R] Problem with German special charac