Re: [R] R is not a validated software package..

2007-06-09 Thread Berwin A Turlach
G'day Marc, On Fri, 08 Jun 2007 14:11:48 -0500 Marc Schwartz [EMAIL PROTECTED] wrote: On Fri, 2007-06-08 at 16:02 +0200, Giovanni Parrinello wrote: Dear All, discussing with a statistician of a pharmaceutical company I received this answer about the statistical package that I have

Re: [R] How do you do an e-mail post that is within an ongoing thread?

2007-06-09 Thread Gavin Simpson
On Fri, 2007-06-08 at 20:39 -0500, Robert Wilkins wrote: That may sound like a stupid question, but if it confuses me, I'm sure it confuses others as well. I've tried to find that information on the R mail-group info pages, can't seem to find it. Is it something obvious? To begin a brand

[R] write.table: last line should differ from usual eol

2007-06-09 Thread Andreas Gegg
Dear R-Team, I have a problem with writing an array to (for example) a .txt-file. Because of the .txt-file must be read from another programm (OPL ILOG), the syntax of the output must be from a special form: name_of_the_object = [ [1,2, ... ], [1,...],

Re: [R] character to time problem

2007-06-09 Thread John Kane
Thanks. I read your code too quickly. I'll have a look at the R News article. I read it last year but apparently have forgotten just about all of it. :( --- Gabor Grothendieck [EMAIL PROTECTED] wrote: The code in my post uses Date class, not POSIX. sort.POSIXlt is never invoked. Suggest you

Re: [R] write.table: last line should differ from usual eol

2007-06-09 Thread jim holtman
This will probably do it for you. It is a function to create the output: write.array - function(x,fileName){ outFile - file(fileName, 'w') cat(deparse(substitute(x)), =[, sep='', file=outFile) for (i in 1:nrow(x)){ cat('[', paste(x[i,], collapse=','), ']', file=outFile,

Re: [R] open .r files with double-click

2007-06-09 Thread michael watson \(IAH-C\)
Hmmm. Possibly your best bet is to create a batch file, runr.bat or something, and associate .r files with that. The batch file would be something like: C:/Program Files/R/R-2.5.0/bin/Rgui.exe --no-save %1 (I think thats how you reference arguments in dos...) -Original Message-

Re: [R] open .r files with double-click

2007-06-09 Thread Duncan Murdoch
On 08/06/2007 2:52 PM, [EMAIL PROTECTED] wrote: Hi Folks, On Windows XP, R 2.5.0. After reading the Installation for Windows and Windows FAQs, I cannot resolve this. I set file types so that Rgui.exe will open .r files. When I try to open a .r file by double-clicking, R begins to

Re: [R] How do you do an e-mail post that is within an ongoing thread?

2007-06-09 Thread Gabor Grothendieck
In gmail just hit Reply to All at the bottom of the post you wish to follow up on. On 6/8/07, Robert Wilkins [EMAIL PROTECTED] wrote: That may sound like a stupid question, but if it confuses me, I'm sure it confuses others as well. I've tried to find that information on the R mail-group info

Re: [R] write.table: last line should differ from usual eol

2007-06-09 Thread Gabor Grothendieck
Try this: write.ilog - function(X, file = ) { w - function(x, z, file) cat([, paste(x, collapse = ,), ], z, sep = , file = file) if (!identical(file, )) { file - open(file, w) on.exit(close(file)) } cat(X=[, file = file) nr - nrow(X) for(i in 1:nr)

Re: [R] pnorm how to decide lower-tail true or false

2007-06-09 Thread Martin Maechler
CM == Carmen Meier [EMAIL PROTECTED] on Fri, 08 Jun 2007 19:31:49 +0200 writes: CM Hi to all, maybe the last question was not clear enough. CM I did not found any hints how to decide whether it CM should use lower.tail or not. As it is an extra CM R-feature ( written in

Re: [R] how to find how many modes in 2 dimensions case

2007-06-09 Thread Tony Plate
If you want to count the local maxima in the n x n matrix returned by kde2d, AND you know there are no ties, you could do something like the following: set.seed(1) x - matrix(sample(10, 25, rep=TRUE), 5, 5) x [,1] [,2] [,3] [,4] [,5] [1,]3935 10 [2,]4 102

Re: [R] R is not a validated software package..

2007-06-09 Thread AJ Rossini
On Friday 08 June 2007, Giovanni Parrinello wrote: Dear All, discussing with a statistician of a pharmaceutical company I received this answer about the statistical package that I have planned to use: As R is not a validated software package, we would like to ask if it would rather be

Re: [R] R is not a validated software package..

2007-06-09 Thread AJ Rossini
You've just opened up another bit of confusion. A submission package has many pieces, and that cited one is just a small part of it. As Frank has mentioned (though perhaps tritely), and Cody points out -- The only issue that a Pharma has to worry about is whether they know enough about a

[R] What ECDF function?

2007-06-09 Thread Shiazy Fuzzy
Hello! I want to plot a P-P plot. So I've implemented this function: ppplot - function(x,dist,...) { pdf - get(paste(p,dist,sep=),mode=function); x - sort(x); plot( pdf(x,...), ecdf(x)(x)); } I have two questions: 1. Is it right to draw as reference line the following: xx -

[R] How to plot vertical line

2007-06-09 Thread adschai
Hi,I have a result from polr which I fit a univariate variable (of ordinal data) with probit function. What I would like to do is to overlay the plot of my fitted values with the different intercept for each level in my ordinal data. I can do something like:lines(rep(intercept1, 1000),

[R] Lines in dotchart dotplot ?

2007-06-09 Thread John Kane
Is it possible to use dotchart or dotplot and set the lines in such a way that they only extend from the left y-axis to the data point? I seem to remember that Wm Cleveland did this in his 1985 book The elements of graphing data. In cases where one has a true starting or O point on the

Re: [R] Lines in dotchart dotplot ?

2007-06-09 Thread deepayan . sarkar
On 6/9/07, John Kane [EMAIL PROTECTED] wrote: Is it possible to use dotchart or dotplot and set the lines in such a way that they only extend from the left y-axis to the data point? Yes (sort of) in dotplot at least. E.g., dotplot(VADeaths, groups = FALSE, type = c(p, h)) dotplot(VADeaths,

Re: [R] What ECDF function?

2007-06-09 Thread Robert A LaBudde
At 12:57 PM 6/9/2007, Marco wrote: snip 2.I found various version of P-P plot where instead of using the ecdf function use ((1:n)-0.5)/n After investigation I found there're different definition of ECDF (note i is the rank): * Kaplan-Meier: i/n * modified Kaplan-Meier: (i-0.5)/n *

Re: [R] How to plot vertical line

2007-06-09 Thread David Barron
abline(v=c(intercept1,intercept2,intercept3)) On 09/06/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi,I have a result from polr which I fit a univariate variable (of ordinal data) with probit function. What I would like to do is to overlay the plot of my fitted values with the different

[R] problem with xlsreadwrite package

2007-06-09 Thread hassen62
Hi friends, I have installed R 2.4.0 in my pc. I have a file xls entitled dali following this directory:c://programfiles//R 2.4.0. Recently I have installed xlsreadwrite 1.3.2. but , when I wrote the following lines: library(xlsReadWrite) read.xls( file, colNames = TRUE, sheet = 1, type =

Re: [R] What ECDF function?

2007-06-09 Thread Shiazy Fuzzy
On 6/9/07, Robert A LaBudde [EMAIL PROTECTED] wrote: At 12:57 PM 6/9/2007, Marco wrote: snip 2.I found various version of P-P plot where instead of using the ecdf function use ((1:n)-0.5)/n After investigation I found there're different definition of ECDF (note i is the rank): *

Re: [R] Tools For Preparing Data For Analysis

2007-06-09 Thread Robert Wilkins
Here are some examples of the type of data crunching you might have to do. In response to the requests by Christophe Pallier and Martin Stevens. Before I started developing Vilno, some six years ago, I had been working in the pharmaceuticals for eight years ( it's not easy to show you actual

Re: [R] Tools For Preparing Data For Analysis

2007-06-09 Thread Gabor Grothendieck
That can be elegantly handled in R through R's object oriented programming by defining a class for the fancy input. See this post: https://stat.ethz.ch/pipermail/r-help/2007-April/130912.html for a simple example of that style. On 6/9/07, Robert Wilkins [EMAIL PROTECTED] wrote: Here are

Re: [R] What ECDF function?

2007-06-09 Thread Robert A LaBudde
At 06:36 PM 6/9/2007, Marco wrote: On 6/9/07, Robert A LaBudde [EMAIL PROTECTED] wrote: At 12:57 PM 6/9/2007, Marco wrote: snip snip Hmmm I'm a bit confused, but very interested! So you don't use the R ecdf, do you? Only when an i/n edf is needed (some tests, such as ks.test() are based on