Re: [R] Need help

2008-10-28 Thread Tal Galili
Hello John.After a simple search in google, I came up with this: http://www.ats.ucla.edu/stat/R/seminars/Repeated_Measures/repeated_measures.htm Enjoy, Tal. On Mon, Oct 27, 2008 at 6:15 PM, JohnLi [EMAIL PROTECTED] wrote: Hi All, I am new comer here and for Statistics R. I want to know

Re: [R] License Question

2008-10-28 Thread rplus
Hi Duncan, Yes we do follow the legal terms very carefully and make sure our general counsel reviews all these stuff. To answer your question, we do not distribute R. We distribute R-PLUS. When users ask us about 'R license', it usually refers to potential hidden

Re: [R] repeated measure one way anova

2008-10-28 Thread Dieter Menne
JohnLi jli136 at site.uottawa.ca writes: I am a new comer for Statistics R. I am using R for one way repeated measure anova, for example, on the following data consisting of three groups. c2c3 c4 85.83 75.86 84.19 85.91 73.18 85.9 -- Arrange your data in the long form. Do

Re: [R] Transferring results from R to MS Word

2008-10-28 Thread Dieter Menne
Tom Backer Johnsen backer at psych.uib.no writes: There are also some parts of the documentation that I do not understand. The list of functions includes things like HTML.lm, as far as I can see are invisible, both in respect to documentation and usage. This might be relic of a function

Re: [R] repeated measure one way anova

2008-10-28 Thread Peter Dalgaard
Dieter Menne wrote: JohnLi jli136 at site.uottawa.ca writes: I am a new comer for Statistics R. I am using R for one way repeated measure anova, for example, on the following data consisting of three groups. c2 c3 c4 85.83 75.86 84.19 85.91 73.18 85.9 -- Arrange your data

Re: [R] Computational problems in R

2008-10-28 Thread Robin Hankin
Hello. The Brobdingnag package uses that identity for a logarithmic representation and also has a hack for negative numbers. HTH rksh A.Noufaily wrote: Many thanks for your suggestions... I am still checking which one is the most useful for my simulations. Concerning using logs, this

Re: [R] help on package or code for simutaneous equation probit(logit) model

2008-10-28 Thread Arne Henningsen
On Tuesday 28 October 2008 03:26:31, Yong Wang wrote: Dear List I am trying to fit a simutaneous equation logit model. i.e., the response variables of the structured equations are binomial, I am not sure if systemfit can do this job. No, systemfit cannot do this. A google search doesn't

Re: [R] License Question

2008-10-28 Thread Barry Rowlingson
2008/10/28 [EMAIL PROTECTED]: To answer your question, we do not distribute R. We distribute R-PLUS. But your web site claims, in big capital letters, that R-plus is THE REAL R. If you are not distributing R (the real real R, (c) The R Foundation), then this could be construed as false

Re: [R] Transferring results from R to MS Word

2008-10-28 Thread Tom Backer Johnsen
Dieter Menne wrote: Tom Backer Johnsen backer at psych.uib.no writes: There are also some parts of the documentation that I do not understand. The list of functions includes things like HTML.lm, as far as I can see are invisible, both in respect to documentation and usage. This might be

Re: [R] License Question

2008-10-28 Thread Tom Backer Johnsen
David Smith wrote: Hi Tom, We're in the process of updating the information on our website for academic users, but in general we're making RPro available to academic users free of charge. I'm just gathering the information from the department in charge of the academic program, and I'll make

[R] a combind problem with list

2008-10-28 Thread tedzzx
Hi all, I came across a combinding promblem. suppose I have got a list: #we got three elements in this list and each elements is a dataframe s-lapply(1:3,funtion(i){data.frame(mean=numeric(),median=numeric())}) using the inside data in R: a-state.x77 f-function(x){c(mean=mean(x),median=(x))}

Re: [R] Stuck with FFT

2008-10-28 Thread Rthoughts
EDIT: to assist you to assist me in turn, for which I am grateful, more detail than the below needs to be provided. I open tables and view them using Rcmdr so they become active datasets. I am assuming that x101, x100, etc, are column headings because when the dataset is edited they can be

[R] Marginal effects in negative binomial

2008-10-28 Thread Roberto Patuelli
Dear All, I carry out negative binomial estimations using the glm.nb command from the MASS package. Is there a command or a simple procedure for computing marginal effects from a glm.nb fitted object? If these are the same as for a Poisson fitted object (glm), my question remains how to

[R] Sweave, Bibtex, package references

2008-10-28 Thread Paolo Sonego
Dear all, I'm a big fan and happy user of the Sweave package for routine reporting. From inside a .Rnw script, I'd like to produce the references in bibtex format for each package loaded in the environment, write them in a .bib file and load them back from the \bibliography{bibliography}

[R] gsubfn, strapply, REGEX Problem

2008-10-28 Thread Johannes Graumann
Hi all, I swear this used to work: library(gsubfn) strapply(S(AC,P)TVDK(8)EELVQK(8), .[(].{1,2}[)]|.)[[1]] But somewhere along the update path it stopped ... now giving me this Error in base::gsub(pattern, rs, x, ...) : invalid backreference 2 in regular expression Can't figure it out.

[R] 2.8.0 on Mac: libR.dylib

2008-10-28 Thread Chris Lokan
I use a Macbook Pro laptop, running OX X 10.4.11. I have been running R 2.7.1 with no problems for years, including installing packages such as chron, Cairo, Design. Today I downloaded R 2.8.0 from my local mirror in Australia. (The md5 result matched the code on the download page.) I then used R

Re: [R] License Question

2008-10-28 Thread Simon Blomberg
I downloaded the trial version and during the installation it told me that I had to install R first (from CRAN). So it looks like the R-PLUS interface is separate from R. They do not distribute R with R-PLUS. I'm in no way associated with this company, and I don't want or need a GUI for my own

[R] R D COM function using Excel

2008-10-28 Thread David Seres
Hello all! I have a code in R which basically opens, saves and closes all excel sheets in a given directory. The code is following: - R code start -- normal_update - function() { # Updating files in main directory

Re: [R] gsubfn, strapply, REGEX Problem

2008-10-28 Thread Gabor Grothendieck
There is no quote terminating the first argument and you need to add the backref = 0 argument so that it does not interpret the parentheses in the regular expression as back references. Its not clear to me what the intention is here so there may be further changes needed but the ones above result

Re: [R] License Question

2008-10-28 Thread Duncan Murdoch
On 10/28/2008 3:01 AM, [EMAIL PROTECTED] wrote: Hi Duncan, Yes we do follow the legal terms very carefully and make sure our general counsel reviews all these stuff. To answer your question, we do not distribute R. We distribute R-PLUS. Thanks for the clarification. As long

Re: [R] Sweave, Bibtex, package references

2008-10-28 Thread ONKELINX, Thierry
Dear Paolo, Have a look at this thread: http://www.nabble.com/Automating-citations-in-Sweave-td20128175.html#a20 128175 HTH, Thierry ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute

Re: [R] 2.8.0 on Mac: libR.dylib

2008-10-28 Thread Chris Lokan
I use a Macbook Pro laptop, running OX X 10.4.11. I have been running R 2.7.1 with no problems for years, including installing packages such as chron, Cairo, Design. Oops, I should say, I've been running R with no problems for years, most recently version 2.7.1 ... Even so, the change to

Re: [R] gsubfn, strapply, REGEX Problem

2008-10-28 Thread Johannes Graumann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Thanks for looking at this. The \ was an oversight for the example, but the backref bit solves my problem ... I wonder whether that used to be the default and was recently changed? Thanks for your help! Joh Gabor Grothendieck wrote: There is

Re: [R] mgcv pack- gam() - question about the by argument

2008-10-28 Thread Gustaf Granath
Thanks!! The R-community is just amazing. Two follow-up questions: 1) IF, I had sufficient amount of data. How would that interaction term (Site x Time) be specified? Maybe like this? (adding stuff on the previous example) And I should look at the Parametric coefficients: for significant

[R] How to calculate an appropiate threshold of a GPD distribution.

2008-10-28 Thread Borja Soto Varela
Dear R-users I would like to fit the GPD distribution using the gpd function from evir package. I need to pick an appropiate threshold. I know there are some useful plots to assist me in this choice like meplot or mrlplot. Do you know if there is any technique to compute or calculate an exact

Re: [R] gsubfn, strapply, REGEX Problem

2008-10-28 Thread Gabor Grothendieck
The default has changed to be the negative of its prior value so that would account for it. The current default is backref = -k where k is the number of left parens in the regexp. That means that it passes only the back references (and not the match) if it thinks there are any backreferences.

Re: [R] gsubfn, strapply, REGEX Problem

2008-10-28 Thread Gabor Grothendieck
Have just made an improvement to the development version to ignore escaped left parens in the regexp in setting the backref default. This improvement should address your problem so that this now works without errors: library(gsubfn) # overwrite relevant function with devel version of it

Re: [R] gsubfn, strapply, REGEX Problem

2008-10-28 Thread Johannes Graumann
Thank you! Joh Gabor Grothendieck wrote: Have just made an improvement to the development version to ignore escaped left parens in the regexp in setting the backref default. This improvement should address your problem so that this now works without errors: library(gsubfn) #

[R] bug calling setRepositories in R 2.8.0

2008-10-28 Thread Kjetil Halvorsen
The following happened when calling setRepositories on R 2.8.0 compiled as a shared library on ubuntu intrepid RC: setRepositories(gra=TRUE) The program 'R' received an X Window System error. This probably reflects a bug in the program. The error was 'BadWindow (invalid Window parameter)'.

Re: [R] Transferring results from R to MS Word

2008-10-28 Thread Eric Lecoutre
Tom, Sorry to react only at tis point ; it makes months I didnt read R-help, having unfortunalety to work for SAS. Though I am not anymore the maintainer of the package, I am the creator of it and may provide some insights. - There are a lot of HTML methods, effectively hidden (namespace) ; you

[R] Fixing an only one coefficient in an ARIMA model

2008-10-28 Thread Yohann MOREAU
Good afternoon, I would like fitting an ARIMA model without the first coefficient. For example, I want to fit an AR(3) like this : y[t]=a[1]*y[t-1]+a[2]*y[t-2]+a[3]*y[t-3], where a[1]=0. How can I specify it in the function arima, if it is possible ? Thank you in advance. Yohann Moreau

[R] How to export text into separate text files

2008-10-28 Thread Lauri Nikkinen
Hello, I'm producing text from my data.frame using cat function. I would like to use for loop to export each column in my data.frame into separate text files. Here is the example code r - t(Indometh) for (i in 1:ncol(r)) { cat(Some text,, \n) cat(\n) cat(More text, More text, More

Re: [R] How to export text into separate text files

2008-10-28 Thread John Kane
jim holtman [EMAIL PROTECTED] just answered a similar question for someone who wanted to input txt files. His suggestion is below. It should work for output as well Jim Holtman's suggestion. - for (i in 2:4){ input -

Re: [R] Transferring results from R to MS Word

2008-10-28 Thread John Kane
--- On Mon, 10/27/08, Tom Backer Johnsen [EMAIL PROTECTED] wrote: From: Tom Backer Johnsen [EMAIL PROTECTED] Subject: Re: [R] Transferring results from R to MS Word To: Greg Snow [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] [EMAIL PROTECTED] Received: Monday, October 27, 2008, 5:44 PM Greg Snow

Re: [R] Stuck with FFT

2008-10-28 Thread stephen sefick
#look at dput this is an easy way to share #data or another great way is to make a #fake data series x - (c(105L, 115L, 140L, 180L, 230L, 300L, 360L, 418L, 450L, 480L, 495L, 500L, 495L, 480L, 450L, 410L, 360L, 300L, 230L, 180L, 140L, 115L, 105L, 100L, 105L, 115L, 140L, 180L, 230L, 300L, 360L,

[R] Best way of figuring out whether graphical elements overlap?

2008-10-28 Thread Johannes Graumann
Hi all, I'm plotting impulses, where some of them should have labels hovering above them. I know of plotrix' spread.labels function, but would like to save that for instances where there truely is to little space for the label. Does anybody have any hints what' the most efficient way might be

[R] odbcConnectExcel2007

2008-10-28 Thread Agnolucci, Paolo
Hi sorry if this is really basic but I am just starting on R. Can anyone point me at how to write R objects into Excel 2007 files. I have seen how to set up a connection to a file through odbcConnectExcel2007(xls.file, readOnly = FALSE, ...) but it doesn't say anything on how to write data

[R] how to easily access S-PLUS data sets in R?

2008-10-28 Thread Mark Daniel Ward
Dear R-help colleagues, Greetings! I'm interested in using some of the data sets from S-PLUS in a class that I'm teaching on R. Our university has a license for S-PLUS, and I recognize that data sets from S-PLUS can be individually exported from S-PLUS and then imported into R. Is there a

Re: [R] ggplot2: how to combine position=stack and position=dodge in a single graph?

2008-10-28 Thread hadley wickham
On Fri, Oct 24, 2008 at 5:18 PM, Elena Schulz [EMAIL PROTECTED] wrote: Hi Hadley, thanks a lot for your quick answer. You should be able to replicate any dodging layout with facetting You mean instead of facetting by years, facetting by months? I will try this an see how the plot looks. I'd

Re: [R] Transferring results from R to MS Word

2008-10-28 Thread heimdal
John Kane wrote: --- On Mon, 10/27/08, Tom Backer Johnsen [EMAIL PROTECTED] wrote: From: Tom Backer Johnsen [EMAIL PROTECTED] Subject: Re: [R] Transferring results from R to MS Word To: Greg Snow [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] [EMAIL PROTECTED] Received: Monday, October 27,

[R] Fitting weibull and exponential distributions to left censoring data

2008-10-28 Thread Borja Soto Varela
Dear R-users I have some datasets, all left-censoring, and I would like to fit distributions to (weibull,exponential, etc..). I read one solution using the function survreg in the survival package. i.e survreg(Surv(...)~1, dist=weibull) but it returns only the scale parameter. Does anyone know

Re: [R] Transferring results from R to MS Word

2008-10-28 Thread Marc Schwartz
on 10/28/2008 10:23 AM [EMAIL PROTECTED] wrote: John Kane wrote: --- On Mon, 10/27/08, Tom Backer Johnsen [EMAIL PROTECTED] wrote: From: Tom Backer Johnsen [EMAIL PROTECTED] Subject: Re: [R] Transferring results from R to MS Word To: Greg Snow [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]

[R] group sequential analysis - stopping for futility

2008-10-28 Thread Alice . Pressman
Hello - I am wondering if anyone has written some R code to calculate futility bounds for a group sequential analysis of clinical trials data. The library ldbounds has a function 'bounds' which calculates the effectiveness stopping bounds for various spending functions, but it does not

[R] Source code for ppr (Projection Pursuit Regression)

2008-10-28 Thread Arvind Iyer
Dear R users, I am looking for the source code of the implementation of ppr (Projection Pursuit Regression) in R. It will be great if citations of the source papers on which the implementation is based, are also provided. Thank you, Arvind Iyer, Grad student, Deptt. of Biomedical Engineering

Re: [R] Best way of figuring out whether graphical elements overlap?

2008-10-28 Thread Greg Snow
There is also the spread.labs function in the TeachingDemos package that uses a different method from the plotrix function and should not move any labels that are not overlapping. There are also the dynIdentify and TkIdentify functions in the same package that allow you to interactively move

Re: [R] License Question

2008-10-28 Thread David Smith
[replying to r-help as well] Hi Tom, Thanks. I am looking forward to more information. We're putting together the academic program right now, but our website will be updated with more details in the next few weeks. As I mentioned though our general attitude is that RPro should be available

Re: [R] Source code for ppr (Projection Pursuit Regression)

2008-10-28 Thread Erin Hodgess
To get the references, check ?ppr For the code: methods(ppr) [1] ppr.default* ppr.formula* Non-visible functions are asterisked getAnywhere(ppr.default) A single object matching 'ppr.default' was found It was found in the following places registered S3 method for ppr from namespace stats

Re: [R] How to export text into separate text files

2008-10-28 Thread Lauri Nikkinen
Thanks for the response. I have used the method Jim Holtman suggested when exporting data.frames. In the current situation, I'm combining text and data from data.frame, and I don't know how to separate the results into the separate text files. I can output everything from the loop into a single

[R] R training Courses

2008-10-28 Thread Sharon Lazenby
All, There are still places available on the following courses. For more detailed information and a registration form please contact [EMAIL PROTECTED], or visit our website at www.mango-solutions.com http://www.mango-solutions.com/ . The R Language

[R] Dose Profile

2008-10-28 Thread Laura Bonnett
Hi Everyone, I have data in a long format e.g. there is one row per patient but each follow-up appointment is included in the row. So, a snippet of the data looks like this: TrialNo Drug Sex Rand Adate1 Date1 Dose1 Time1 Adate2 Date2 Dose2 Time2 B1001029 LTG M 15719 30/04/2003 15825 150

Re: [R] odbcConnectExcel2007

2008-10-28 Thread Chrischizinski
Agnolucci, Paolo wrote: Hi sorry if this is really basic but I am just starting on R. Can anyone point me at how to write R objects into Excel 2007 files. I have seen how to set up a connection to a file through odbcConnectExcel2007(xls.file, readOnly = FALSE, ...) but it

[R] acf() plots of a data.frame: what meaning?

2008-10-28 Thread Oliver Bandel
Hello, what is the meaning of the plots of an acf()-plot, when using a data frame as argument? The result is NOT obvious for me. There are combinations of the columns of a dataframe in the reulting plot. But an acf() is just defined for onyl one time-sreies. So what do the plots mean? I did not

Re: [R] License Question

2008-10-28 Thread rplus
Thank you Simon, We are working on the linux version as well and will roll out more products during our conference in Las Vegas next year. Regards R-PLUS Team 24 Hours Tech Support Think Fast, Think Big, Without The High Cost!

[R] acf(): meaning of the blue horizontal lines

2008-10-28 Thread Oliver Bandel
Hello, what are they meaning? It could be something that would show a threshhold above which the result is indicating different meanings then just random noise. But there is no description on the definition of those lines, so it means nothing, if it is not clearly defined. Where can I find a

Re: [R] Sweave, Bibtex, package references

2008-10-28 Thread Paolo Sonego
Dear Thierry, Thank you very much for you very useful advice! I managed to solve my specific problem with this code: echo=FALSE= package - grep(^package:, search(), value = TRUE) keep - sapply(package, function(x) x == package:base || !is.null(attr(as.environment(x), path))) package -

Re: [R] Fixing an only one coefficient in an ARIMA model

2008-10-28 Thread Kellie Wills
Hello Yohann, Try arima(lh, order=c(3,0,0), fixed=c(0, NA, NA, NA)) The NA entries in fixed (for AR2, AR3, and intercept) will be allowed to vary. Kellie Wills Engineering Service Manager REvolution Computing [EMAIL PROTECTED] On Tue, Oct 28, 2008 at 7:10 AM, Yohann MOREAU [EMAIL PROTECTED]

[R] Recommended R books by XLSolutions Corporation

2008-10-28 Thread dsmith
We've listed books we've recommended to our introductory R/R-PLUS courses attendees [1]http://www.experience-rplus.com/books.asp If you'd like to recommend a book, email [EMAIL PROTECTED] R-PLUS Rocks! R-PLUS Team 24 Hours Tech Support Think Fast, Think

[R] Random Forest Bug

2008-10-28 Thread Roeder Jens (CR/AEM5)
Dear help list, I think I found a bug a the R Random Forest. Hopefully, you are able to reproduce it. I use R version 2.7.2 and RF version 4.5-27. This is a minimal code to describe the problem: library(randomForest) tries - 20 dimension - 20 n - 200 outlyingness - rep(NaN,tries) for (o_number

Re: [R] Marginal effects in negative binomial

2008-10-28 Thread John Fox
Dear Roberto, It depends on what you mean by marginal effects, but the effects package will calculate what I would prefer to call partial effects for terms in a generalized linear model; it should work fine with objects produced by glm.nb. I hope this helps, John --

[R] Sweave Error

2008-10-28 Thread [EMAIL PROTECTED]
dear R users, I am using sweave to generate report for my data analysis. I recently updated R ro 2.8.0, and now I have the following results when compile the the tex file generated from R. This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) %-line parsing enabled. entering extended mode

[R] abind

2008-10-28 Thread Suyan Tian
I am trying to combine two arrays with different dimensions into one. For example The first one is 1 2 3 4 5 6 The second one is 7 8 9 10 The resulted one would be like , , 1 1 2 3 4 5 6 , , 2 7 8 9 10 I used abind to do this, but failed. Could somebody please let me know how to do

Re: [R] abind

2008-10-28 Thread Henrique Dallazuanna
You can use lists for this: list(a, b) On Tue, Oct 28, 2008 at 3:39 PM, Suyan Tian [EMAIL PROTECTED]wrote: I am trying to combine two arrays with different dimensions into one. For example The first one is 1 2 3 4 5 6 The second one is 7 8 9 10 The resulted one would be like ,

Re: [R] Recommended R books by XLSolutions Corporation

2008-10-28 Thread Bert Gunter
David: IMHO, this is beginning to be commercial abuse of this list. Please no more advertising. (Others may have different opinions). -- Bert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, October 28, 2008 9:33 AM To:

Re: [R] Pkg rgl: installation fails because of x11

2008-10-28 Thread megha patnaik
This works. After installing the dependencies and installing RGL from inside R, library(rgl) rgl.open() should open a display window for you. 2008/10/27 Ben Bolker [EMAIL PROTECTED] Duncan Murdoch murdoch at stats.uwo.ca writes: Matthieu Stigler wrote: Hello Im trying to

Re: [R] Dose Profile

2008-10-28 Thread Bert Gunter
Why don't you ask your someone at work to help, as you appear to have local resources handy? -- Bert Gunter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Laura Bonnett Sent: Tuesday, October 28, 2008 9:33 AM To: r-help@r-project.org Subject: [R] Dose

Re: [R] abind

2008-10-28 Thread Tony Plate
It looks like you are trying to construct a ragged array, where the extent of the dimensions varies. However, in R, ordinary arrays have a regular structure, e.g., the rows of a matrix always have the same number of columns. This is the kind of object abind() constructs. So, to bind your

Re: [R] Sweave Error

2008-10-28 Thread Martin Morgan
[EMAIL PROTECTED] wrote: dear R users, I am using sweave to generate report for my data analysis. I recently updated R ro 2.8.0, and now I have the following results when compile the the tex file generated from R. Hi Claudio How do you invoke latex? On many systems, this works % R CMD

Re: [R] Recommended R books by XLSolutions Corporation

2008-10-28 Thread Steve_Friedman
I agree with Bert, The R user group lists should not be a vehicle for private commercial vendors. Steve Friedman Ph. D. Spatial Statistical Analyst Everglades and Dry Tortugas National Park 950 N Krome Ave (3rd Floor) Homestead, Florida 33034 Office (305) 224 - 4282 [EMAIL PROTECTED]

Re: [R] Recommended R books by XLSolutions Corporation

2008-10-28 Thread Bert Gunter
David et. al: My sentiments are the same, but my apology to you (and I'm glad to learn that it's not you!). -- Bert _ From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2008 11:09 AM To: Bert Gunter Subject: Re: [R] Recommended R books by XLSolutions

Re: [R] License Question

2008-10-28 Thread James MacDonald
Barry Rowlingson [EMAIL PROTECTED] wrote: Oh, btw, I'd fix your blog links: go to: http://www.experience-rplus.com/blog.asp?b=act and click a screenshot... Now that is hilarious. A fine example of defensive coding for the web circa 2008 ;-D Best, Jim Barry

[R] color individual bar of histogram?

2008-10-28 Thread Whit Armstrong
Anyone know a quick way to color one bar of a histogram? I want to mark the bar in which the most recent observation falls. So, for instance: x - rnorm(100) latest.ob - x[100] hist(x) ## how do I mark the bucket that latest.ob falls into? Thanks, Whit

[R] change data into array

2008-10-28 Thread Suyan Tian
Sorry to bother everyone again with one question about array. I have one data set saved in this way patienttime x1 x2 response 1 1 18 1 1 2 27 1 2 1 36 1 2

Re: [R] Computational problems in R

2008-10-28 Thread Steven McKinney
I misinterpreted the suggestion from Duncan Murdoch, and I think Amy did too, judging from her comment about B possibly being negative. Duncan Murdoch kindly explained the idea off-list, many thanks to him for taking the time. To avoid further confusion, I've set up a basic example explaining

Re: [R] Recommended R books by XLSolutions Corporation

2008-10-28 Thread eugene dalt
I attended a course at XLSolutions and glad they can publish a list of recommended R books. IMHO they shouldn't post it here though. This name issue is hilarious given thousands of David Smith out there but to cut the story short, my class at XLSolutions was taught by a David Andrew Smith

Re: [R] Recommended R books by XLSolutions Corporation

2008-10-28 Thread eugene dalt
I attended a course at XLSolutions and glad they can publish a list of recommended R books. IMHO they shouldn't post it here though. This name issue is hilarious given thousands of David Smith out there but to cut the story short, my class at XLSolutions was taught by a David Andrew Smith

Re: [R] color individual bar of histogram?

2008-10-28 Thread Peter Dalgaard
Whit Armstrong wrote: Anyone know a quick way to color one bar of a histogram? I want to mark the bar in which the most recent observation falls. So, for instance: x - rnorm(100) latest.ob - x[100] hist(x) ## how do I mark the bucket that latest.ob falls into? Something like this:

Re: [R] color individual bar of histogram?

2008-10-28 Thread Whit Armstrong
That's great, Peter. Thanks very much. -Whit On Tue, Oct 28, 2008 at 3:13 PM, Peter Dalgaard [EMAIL PROTECTED] wrote: Whit Armstrong wrote: Anyone know a quick way to color one bar of a histogram? I want to mark the bar in which the most recent observation falls. So, for instance: x -

Re: [R] color individual bar of histogram?

2008-10-28 Thread Henrique Dallazuanna
Other option without rect is: h - hist(x, plot = FALSE) bin - as.numeric(cut(latest.ob, h$breaks)) plot(h, col = replace(rep(white, length(h$breaks) - 1), bin, red)) On Tue, Oct 28, 2008 at 4:48 PM, Whit Armstrong [EMAIL PROTECTED]wrote: Anyone know a quick way to color one bar of a histogram?

[R] slightly OT: (un)supervised clustering?

2008-10-28 Thread viktoras didziulis
Hi, my question is not exactly about R... What I am looking for are hints and directions on suitable methods (available in R or elsewhere) to solve a grouping (or pattern recognition) problem of environmental features in an environmental gradient as described below. Given environmental

Re: [R] Recommended R books by XLSolutions Corporation

2008-10-28 Thread David M Smith
David Andrew Smith from XL Solutions emailed me privately to clear up the confusion, too (thanks, David A). To avoid any future confusion, I'll use my middle initial (M) from now on. To get this thread back to R and statistics, there might be an interesting counting problem here somewhere. :)

Re: [R] How to export text into separate text files

2008-10-28 Thread Lauri Nikkinen
I think I found the solution: for (i in 1:ncol(r)) { cat(Some text,, \n, file=paste(temp, i, .txt), append=T) cat(\n, file=paste(temp, i, .txt), append=T) cat(More text, More text, More text, file=paste(temp, i, .txt), append=T) cat(\n, file=paste(temp, i, .txt), append=T)

Re: [R] Need help

2008-10-28 Thread JohnLi
Thank you very much! I solve my problem according these information. Guichong Hello John.After a simple search in google, I came up with this: http://www.ats.ucla.edu/stat/R/seminars/Repeated_Measures/repeated_measures.htm Enjoy, Tal. On Mon, Oct 27, 2008 at 6:15 PM, JohnLi [EMAIL

Re: [R] color individual bar of histogram?

2008-10-28 Thread Peter Dalgaard
Henrique Dallazuanna wrote: Other option without rect is: h - hist(x, plot = FALSE) bin - as.numeric(cut(latest.ob, h$breaks)) plot(h, col = replace(rep(white, length(h$breaks) - 1), bin, red)) Nice. Some small improvements seem possible: h - hist(x, plot = FALSE) bin - cut(latest.ob,

Re: [R] Recommended R books by XLSolutions Corporation

2008-10-28 Thread Ben Bolker
David M Smith david at revolution-computing.com writes: David Andrew Smith from XL Solutions emailed me privately to clear up the confusion, too (thanks, David A). To avoid any future confusion, I'll use my middle initial (M) from now on. To get this thread back to R and statistics,

Re: [R] Recommended R books by XLSolutions Corporation

2008-10-28 Thread Peter Dalgaard
David M Smith wrote: [] David is the sixth most common first name in the US (with a frequency of 2.363%) and Smith is the most common last name (with a frequency of 1.006%). Now, presumably first and last names aren't chosen independently (choice of a first name that in the same ethnic

[R] How to add a data line (series) to a plot using add=TRUE

2008-10-28 Thread Mark Na
Hello, I'd like to use the add=TRUE parameter to add a second data line (series) to an existing plot, but R is giving me an error (see below). This code: rap-plot(aspen_sort,ylim=c(1,1),log=y) ...produces the plot to which I'd like to add the second line. But this code:

Re: [R] repeated measure one way anova

2008-10-28 Thread JohnLi
Thanks a lot ! I learn a lot about R while I solve my problem according to those provided informatin. John Dieter Menne wrote: JohnLi jli136 at site.uottawa.ca writes: I am a new comer for Statistics R. I am using R for one way repeated measure anova, for example, on the following data

Re: [R] slightly OT: (un)supervised clustering?

2008-10-28 Thread Dylan Beaudette
On Tuesday 28 October 2008, viktoras didziulis wrote: Hi, my question is not exactly about R... What I am looking for are hints and directions on suitable methods (available in R or elsewhere) to solve a grouping (or pattern recognition) problem of environmental features in an environmental

Re: [R] acf(): meaning of the blue horizontal lines

2008-10-28 Thread David Scott
On Tue, 28 Oct 2008, Oliver Bandel wrote: Hello, what are they meaning? It could be something that would show a threshhold above which the result is indicating different meanings then just random noise. But there is no description on the definition of those lines, so it means nothing, if it is

Re: [R] acf() plots of a data.frame: what meaning?

2008-10-28 Thread David Scott
On Tue, 28 Oct 2008, Oliver Bandel wrote: Hello, what is the meaning of the plots of an acf()-plot, when using a data frame as argument? The result is NOT obvious for me. There are combinations of the columns of a dataframe in the reulting plot. But an acf() is just defined for onyl one

[R] get coordinates to multi file

2008-10-28 Thread Alessandro
Hi All, I need to understand How I could to get coordinate to multi-files in a some code: I import X,Y,Z txt files (=vegetation_2.txt, vegetation_3.txt, vegetation_4.txt, etc etc.) with for(i in 2:4) assign(paste('vegetation',i,sep='_'),read.delim(paste('vegetation_',i,'.txt'

Re: [R] does qplot works with Sweave?

2008-10-28 Thread hadley wickham
You need to explicitly print ggplot objects: print(qplot(carat,price,data=dsmall,colour = color)) Hadley On Tue, Oct 28, 2008 at 3:43 PM, Felipe Carrillo [EMAIL PROTECTED] wrote: Hi Hadley: I'm practicing writing a document using MikTex but can't make qplot to execute. It works when using

Re: [R] Fitting weibull and exponential distributions to left censoring data

2008-10-28 Thread Fernando Marmolejo Ramos
Dear Barja Have you looked at gamlss y gamlss.dist libaries? There some functions called WEI, WEI2, and WEI3 Cheers, Fer __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] outputting (writing) output into a dataframe

2008-10-28 Thread Farrel Buchinsky
I have solved this problem once before but don't recall exactly how. Is there a url that shows how? What I want to do now is quite specific but my query is actually very general There are many functions in which one specifies several parameters and an output is generated. Well what happens if

[R] Distributions Comparison

2008-10-28 Thread Igor Telezhinsky
Dear all, I have recently found out about the R project. Could anyone tell me if it is possible to make the comparison of two distributions using R packages? The problem is TRICKY because I have the distributions of measurements and each measurement in the given distribution has its own error,

[R] Saving a 3d array into a matlab file

2008-10-28 Thread Minho Chae
Dear R users, I am tryting to save an 3d array to a matlab file like the following. A - array(1:24, c(2,3,4)) writeMat(filename, A=A) But if I load the mat file from Matlab, it is not 3d matrix anymore. Does anyone know how I can preserve the 3d structure? Any help will be greatly appreciated.

Re: [R] How to add a data line (series) to a plot using add=TRUE

2008-10-28 Thread stephen sefick
add is not a graphical parameter On Tue, Oct 28, 2008 at 3:49 PM, Mark Na [EMAIL PROTECTED] wrote: Hello, I'd like to use the add=TRUE parameter to add a second data line (series) to an existing plot, but R is giving me an error (see below). try (untested):

[R] Repository missing hmisc

2008-10-28 Thread David Huffer
I'm trying to install the Hmisc package, however it doesn't appear in the list after utils:::menuInstallPkgs(). Any help? -- David __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Sweave, Bibtex, package references

2008-10-28 Thread ONKELINX, Thierry
Paolo, Try using \nocite{*}. That will cite every entry in your bibliography. HTH, Thierry ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest Cel biometrie,

Re: [R] Distributions Comparison

2008-10-28 Thread Rolf Turner
On 29/10/2008, at 10:53 AM, Igor Telezhinsky wrote: Dear all, I have recently found out about the R project. Could anyone tell me if it is possible to make the comparison of two distributions using R packages? The problem is TRICKY because I have the distributions of measurements and

  1   2   >