[R] Calling C function in R

2003-12-16 Thread Manoj - Hachibushu Capital
Hi All, I am trying to write a c function to optimize loop processing. Having read the R extension and trying out a few samples I was pretty comfortable with the basics. However, I am wondering if there is anyway to call tseries functions like adf.test or po.test from within c

Re: [R] Resampling Stats software

2003-12-16 Thread Uwe Ligges
Brandon Vaughn wrote: Hi, I am new to R (I have most of my experience in SAS and SPSS). I was wondering if anyone has used both Resampling Stats and R, and could comment on strengths/relationships. Hmmm. 8 years ago I had to use Resampling Stats. I don't know what Resampling Stats is today,

Re: [R] Winedit and R

2003-12-16 Thread Uwe Ligges
Patrick Giraudoux wrote: Hi all, I am trying to install add-on in R (rw1070) to work with WinEdit. R-WinEdt is a plug-in for WinEdt, not for WinEdit (the i does matter!)- For the following discussion, let's assume you mean WinEdt. Libraries Swinregistry and Rwinedt have been installed via

Re: [R] Winedit and R

2003-12-16 Thread Prof Brian D Ripley
You are using mismatched versions of R and the packages, as the warnings say. Please update your version of R. On Tue, 16 Dec 2003, Patrick Giraudoux wrote: Hi all, I am trying to install add-on in R (rw1070) to work with WinEdit. Libraries Swinregistry and Rwinedt have been installed via

Re: [R] Calling C function in R

2003-12-16 Thread Prof Brian D Ripley
On Tue, 16 Dec 2003, Manoj - Hachibushu Capital wrote: Hi All, I am trying to write a c function to optimize loop processing. Having read the R extension and trying out a few samples I was pretty comfortable with the basics. However, I am wondering if there is anyway to call

Re: [R] Winedit and R

2003-12-16 Thread Patrick Giraudoux
Did it and it works now perfectly well. Apologises to have disturbed everybody for a so trivial issue. Many thanks for the hints all, Patrick - Original Message - From: Prof Brian D Ripley [EMAIL PROTECTED] To: Patrick Giraudoux [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday,

Re: [R] Rd files Assignment functions.

2003-12-16 Thread Jason Turner
wolski wrote (using a mail client that doesn't wrap lines): ... Cannot handle Rd file names containing ''. These are not legal file names on all R platforms. Please rename the following files and try again: man/[[-.caliblist.Rd man/[-.massvectorlist.Rd man/[[-.massvectorlist.Rd Ok. It does

[R] `bivariate apply'

2003-12-16 Thread Vito Muggeo
dear all, Given a matrix A, say, I would like to apply a bivariate function to each combination of its colums. That is if myfun-function(x,y)cor(x,y) #computes simple correlation of two vectors x and y then the results should be something similar to cor(A). I tried with mapply, outer,...but

Re: [R] mailing list for basic questions - preliminary sum up

2003-12-16 Thread Martin Wegmann
Dear R-user, I already received quite a lot of replies to this mail and like to do a preliminary sum up. A few were sceptical about the use of such a beginner mailing list. The arguments were that people starting with R will only stay subscribed for a short time until they reached the

RE: [R] mailing list for basic questions - preliminary sum up

2003-12-16 Thread Sung, Iyue
I think a separate list is redundant. Many basic questions do get answered. My impression is that *who* is asking, determines the response. A poli-sci student asking the same question as a more (presumably) technically resourceful, say CS person, is more likely to get a helpful response, vs

[R] Forward stepwise LOGISTIC regression

2003-12-16 Thread Karl Knoblick
Hallo! Does anybody know how to do a forward stepwise LOGISTIC regression? (I found lrm(), fastbw() and validate() in the Design package concerning backward logistic regression - but no forward) Thanks! Karl __ [EMAIL PROTECTED] mailing list

Re: [R] `bivariate apply'

2003-12-16 Thread Thomas Lumley
On Tue, 16 Dec 2003, Vito Muggeo wrote: dear all, Given a matrix A, say, I would like to apply a bivariate function to each combination of its colums. That is if myfun-function(x,y)cor(x,y) #computes simple correlation of two vectors x and y then the results should be something similar

Re: [R] Forward stepwise LOGISTIC regression

2003-12-16 Thread Prof Brian Ripley
On Tue, 16 Dec 2003, Karl Knoblick wrote: Does anybody know how to do a forward stepwise LOGISTIC regression? (I found lrm(), fastbw() and validate() in the Design package concerning backward logistic regression - but no forward) Try using R itself: glm + step. help.search(logistic)

Re: [R] `bivariate apply'

2003-12-16 Thread Peter Wolf
Vito Muggeo wrote: dear all, Given a matrix A, say, I would like to apply a bivariate function to each combination of its colums. That is if myfun-function(x,y)cor(x,y) #computes simple correlation of two vectors x and y then the results should be something similar to cor(A). I tried with

Re: [R] mailing list for basic questions - preliminary sum up

2003-12-16 Thread Pascal A. Niklaus
Martin Wegmann wrote: Dear R-user, I already received quite a lot of replies to this mail and like to do a preliminary sum up. A few were sceptical about the use of such a beginner mailing list. The arguments were that people starting with R will only stay subscribed for a short time

[R] box correction or Huynh-Feldt epsilon

2003-12-16 Thread John Christie
Following up the several unanswered requests for a sphericity or circularity test in the archives, those who wish to test should feel free to use the following function. If anyone notices errors please correct. The returned value is an epsilon one can use to correct degrees of freedom. It

Re: [R] mailing list for basic questions - preliminary sum up

2003-12-16 Thread A.J. Rossini
Pascal A. Niklaus [EMAIL PROTECTED] writes: - In my experience even *very* basic questions *relating to the R language* do get answered on r-help. I'm impressed by how much time some members of the R core team spend answering relatively basic questions, and by how elaborate their answers

Re: [R] mailing list for basic questions - preliminary sum up

2003-12-16 Thread Jonathan Baron
On 12/16/03 16:09, Pascal A. Niklaus wrote: - In my experience even *very* basic questions *relating to the R language* do get answered on r-help. I'm impressed by how much time some members of the R core team spend answering relatively basic questions, and by how elaborate their answers generally

Re: [R] mailing list for basic questions - preliminary sum up

2003-12-16 Thread Spencer Graves
I agree with Tony's observation that well thought out questions are more likely to receive an answer than something that is long, rambling, and poorly focused. Many questions take more time to read than I have available, so I don't bother. I like questions that include toy examples in a

RE: [R] `bivariate apply'

2003-12-16 Thread Gabor Grothendieck
The following: - uses apply to turn the input matrix, x, into a vector of lists, each of which represents one column - this vector of lists is replicated two different ways and - mapply is used on the replicated structures. - finally, reform the result into a matrix This solution has the

Re: [R] mailing list for basic questions - preliminary sum up

2003-12-16 Thread Gabor Grothendieck
If the archives were placed on www.r-project.org then googling for whatever site:r-project.org would find anything in them along with anything already on the site. --- Date: Tue, 16 Dec 2003 10:31:32 -0500 From: Jonathan Baron [EMAIL PROTECTED] To: Pascal A. Niklaus [EMAIL PROTECTED]

[R] Random Numbers

2003-12-16 Thread Silvia Perez Martin
Hello I´m a student from Spain. I couldn´t find something about R and I was asking if someone could tell me which generator of random numbers use rnorm and runif. I think I have discovered that in runif they use the inversion method, but I don´t find any clue where they use the Super-duper

Re: [R] Random Numbers

2003-12-16 Thread Spencer Graves
Have you looked at ?set.seed? This provides some detail in R 1.8.1 for Windows. hope this helps. spencer graves p.d. No hay que desculparse por su inglés. Está claro. Silvia Perez Martin wrote: Hello I´m a student from Spain. I couldn´t find something about R and I was asking if

[R] error constraints in lme

2003-12-16 Thread Harold Doran
Dear List: I am trying to figure out how to incorporate measurement error in an longitudinal educational data set using lme to create a true score model. As a by-product of the procedures used to scale educational tests, one can obtain a person-specific measurement error associated with each

Re: [R] Random Numbers

2003-12-16 Thread Ravi Varadhan
Take a look at the help for RNGkind as follows: ?RNGkind Ravi. - Original Message - From: Silvia Perez Martin [EMAIL PROTECTED] Date: Tuesday, December 16, 2003 12:45 pm Subject: [R] Random Numbers Hello Im a student from Spain. I couldnt find something about R and I was asking

Re: [R] (no subject)

2003-12-16 Thread Angel
Hola, he visto que no has tenido mucho exito con tu consulta. Esta ayuda es principalmente en ingles, esta puede ser una de las razones. Otras es que has sido muy poco conciso/a con tu pregunta. De que tienes dudas exactamente, has leido la documentacion del paquete y de R. Si lo has hecho, pon un

Re: [R] Random Numbers

2003-12-16 Thread Thomas Lumley
On Tue, 16 Dec 2003, Silvia Perez Martin wrote: Hello I´m a student from Spain. I couldn´t find something about R and I was asking if someone could tell me which generator of random numbers use rnorm and runif. I think I have discovered that in runif they use the inversion method, but I

Re: [R] Difference between summary.lm() and summary.aov()

2003-12-16 Thread Alexander Sirotkin \[at Yahoo\]
Thanks a lot to everybody. Two more questions, if you don't mind : How anova() treats non-categorical variables, such as severity in my case ? I was under impression that ANOVA is defined for categorical variables only. I read about drop1() and I understand that it performs F-test for nested

[R] Fw: [S] plot stacked bar chart in R

2003-12-16 Thread Yun-Fang Juan
posting the question in r-help@ to get more feedback :-) thanks, Yun-Fang - Original Message - From: Yun-Fang Juan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 2:04 PM Subject: [S] plot stacked bar chart in R Hi, I am trying to plot a stacked bar chart in

RE: [R] Fw: [S] plot stacked bar chart in R

2003-12-16 Thread Andy Bunn
See ?barplot and pay attention to the 'height' and 'beside' arguments. They produce very nice stacked plots. Some of the examples using the VA deaths dataset displays stacked plots. HTH, Andy __ [EMAIL PROTECTED] mailing list

Re: [R] Fw: [S] plot stacked bar chart in R

2003-12-16 Thread Sundar Dorai-Raj
Did you look at ?barplot? # x is a data.frame from below x2 - do.call(rbind, split(x$Count, x$CAT1)) dimnames(x2)[[2]] - letters[1:3] barplot(x2, legend = TRUE) Sundar Yun-Fang Juan wrote: posting the question in r-help@ to get more feedback :-) thanks, Yun-Fang - Original Message -

[R] Help w/ termplot predict.coxph/ns

2003-12-16 Thread John Fieberg
I am fitting a cox PH model w/ 2 predictors, x1 = 0/1 treatment variable and x2=continuous variable. I am using natural splines (ns) to model the effect of x2. I would like to examine the estimated effect of x2 on the hazard. I have tried various approaches (below; let model.fit= fitted model

Re: [R] mailing list for basic questions - preliminary sum up

2003-12-16 Thread Martin Wegmann
Hello, I agree completely that well thought out questions are important to receive good and quick replies and I agree as well that the replies on the R-help list are very good and helpful. But I had to learn and I am still learing how to write good questions and appreciate Spencer's

RE: [R] Axe time of series in format yy-mm-dd

2003-12-16 Thread Gabor Grothendieck
I just noticed an error in my posting below. The origin in get.hist.quote is relative to day=30, not day=31. --- Date: Sat, 6 Dec 2003 14:06:49 -0500 (EST) From: Gabor Grothendieck [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [R] Axe time of series in format

Re: [R] Difference between summary.lm() and summary.aov()

2003-12-16 Thread John Fox
At 01:52 PM 12/16/2003 -0800, Alexander Sirotkin \[at Yahoo\] wrote: Thanks a lot to everybody. Two more questions, if you don't mind : How anova() treats non-categorical variables, such as severity in my case ? I was under impression that ANOVA is defined for categorical variables only. The term

[R] variance estimates in lme biased?

2003-12-16 Thread Gary Allison
Hi all, I didn't get a response to my post of this issue a week ago, so I've tried to clarify: When I use lme to analyze a model of nested random effects, the variance estimates of levels higher in the hierarchy appear to have much more variance than they should. In the example below with 4

Re: [R] Resampling Stats software

2003-12-16 Thread Andrew Criswell
A very good introductory text is Data Analysis by Resampling: Concepts and Applications by Clifford Lunneborg. My search on Amazon fails to locate the book Brandon mentions, Resampling: The New Statistics. Is there more information on Author, ISBN, etc.? You may wish to look at appendix 8,

[R] Jacobian Matrix

2003-12-16 Thread Savano S. Pereira
Dear useRs, I need of jacobian of a tranformation, R have this function? thanks. Savano __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] mailing list for basic questions - preliminary sum up

2003-12-16 Thread Richard A. O'Keefe
My experience in several mailing lists and newsgroups has been that help from other beginners very often deserves the scare quotes. The advice is often extremely bad. The situation for R is quite different: R has the best documentation I've ever seen for any open-source package, and it's better

Re: [R] mailing list for basic questions - preliminary sum up

2003-12-16 Thread Gabor Grothendieck
My personal view on this is that there is need for a friendly list with a more customer service attitude than r-help. r-help is really very useful but its also intimidating and I bet lots of people have questions that they never ask for fear of the response. Maybe some of them even decide not

RE: [R] Jacobian Matrix

2003-12-16 Thread Gabor Grothendieck
Depending on what it is, you might be able to construct it using deriv. Try ?deriv --- Date: 17 Dec 2003 00:49:17 -0200 From: Savano S. Pereira [EMAIL PROTECTED] To: Lista R [EMAIL PROTECTED] Subject: [R] Jacobian Matrix Dear useRs, I need of jacobian of a tranformation, R have this

Re: [R] mailing list for basic questions - preliminary sum up

2003-12-16 Thread Andrew C. Ward
There are always people on lists whose email manner leaves a great deal to be desired. I tend to think, however, that it's a small price to pay for excellent, free software and fast, expert advice. Anyway, there's no guarantee that a beginner's list would be any more friendly than the main list,