[R] survival parametric question

2005-08-27 Thread denis lalountas
Hi to all, I am working on design package using survival function. First using PSM and adopting a weibull specification for the baseline hazard , I have got the following results(since weibull has both PH and AFT propreties ,in addition I have used the PPHSm command): Value Std. Error z

Re: [R] ROracle and select query empty

2005-08-27 Thread dhinds
Mathieu Drapeau [EMAIL PROTECTED] wrote: Hi, I just installed ROracle and RDBI. The connection to the database seems to work also. My problem is when I am selection rows that really exist in the database, it is returning nothing. Where should I look to see what could be my problem? What

Re: [R] Creating factors from continuous variables

2005-08-27 Thread Peter Dalgaard
Prof Brian Ripley [EMAIL PROTECTED] writes: ?cut This is in `An Introduction to R', the manual which ships with R and basic reading. ...as well as in the Compendium section and in an exercise in Ch.1 in at least one of the cited references. P.S. Here's what I have read to try to find

Re: [R] parts of data frames: subset vs. [-c()]

2005-08-27 Thread Stefan Th. Gries
From: Stefan Th. Gries [EMAIL PROTECTED] writes: I have a problem with splitting up a data frame called ReVerb: I would like to extract all cases where SYNTAX==Ditrans from ReVerb, store that in a file, and then generate ReVerb again without these cases and factor levels. My problem is

Re: [R] zoo, zooreg, ISOdatetime

2005-08-27 Thread Prof Brian Ripley
On Fri, 26 Aug 2005, David James wrote: I create a zooreg object that runs from Jan-1-2002 0:00 to Jun-1-2005 0:00... regts.start = ISOdatetime(2002, 1, 1, hour=0, min=0, sec=0, tz=) regts.end = ISOdatetime(2005, 6, 1, hour=0, min=0, sec=0, tz=) regts.zoo - zooreg( NA, regts.start,

Re: [R] survival parametric question

2005-08-27 Thread Prof Brian Ripley
The survival package is a recommended package in R and contains survreg() which uses the AFT definitions for Weibull survival. This is well documented, and MASS (the book) has comparisons of PH and AFT parametrization for a Weibull example. I think you mean Frank Harrell's `Design' package.

[R] two-tailed exact binomail test

2005-08-27 Thread katrina smith
I am trying to find a definition for the two-tailed exact binomial test but have been unsuccessful. Can you help? - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing

Re: [R] two-tailed exact binomail test

2005-08-27 Thread P. Olsson
You might find the answer in Chapter 2 of Nonparametric statistical methods written by Myles Hollander and Douglas A. Wolfe (2nd ed., ISBN: 0-471-19045-4) 2005/8/27, katrina smith [EMAIL PROTECTED]: I am trying to find a definition for the two-tailed exact binomial test but have been

Re: [R] survival parametric question

2005-08-27 Thread Frank E Harrell Jr
Prof Brian Ripley wrote: The survival package is a recommended package in R and contains survreg() which uses the AFT definitions for Weibull survival. This is well documented, and MASS (the book) has comparisons of PH and AFT parametrization for a Weibull example. I think you mean

Re: [R] two-tailed exact binomail test

2005-08-27 Thread Peter Dalgaard
katrina smith [EMAIL PROTECTED] writes: I am trying to find a definition for the two-tailed exact binomial test but have been unsuccessful. Can you help? Just read binom.test. The relevant bit is this: (m is the mean == n*p) else if (x m) { i - seq(from =

[R] writing to a fixed format (fortran) file

2005-08-27 Thread Duncan Golicher
Could anyone help with what should be a simple task? I have data as a fixed format (fortran) table. I have no trouble getting it into R using read.table. Each column is separated by a space, including the first column that begins with a space, and aligned. It reads into R as if separated by

Re: [R] Help: lda predict

2005-08-27 Thread Shengzhe Wu
Hello, I use qda (package MASS) to obtain an object. If there is any function to plot density plot of qda object with one dimension? Thank you, Shengzhe __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Help: lda predict

2005-08-27 Thread Brian D Ripley
On Sat, 27 Aug 2005, Shengzhe Wu wrote: Hello, I use qda (package MASS) to obtain an object. If there is any function to plot density plot of qda object with one dimension$B!)(B That makes no sense. qda objects do not have a density. Please do study the background material (as you have

Re: [R] writing to a fixed format (fortran) file

2005-08-27 Thread Jean Eid
why not write.table with sep=\t On Sat, 27 Aug 2005, Duncan Golicher wrote: Could anyone help with what should be a simple task? I have data as a fixed format (fortran) table. I have no trouble getting it into R using read.table. Each column is separated by a space, including the first

Re: [R] writing to a fixed format (fortran) file

2005-08-27 Thread Sean O'Riordain
?sprintf more C than fortran, but you get the idea :-) cheers! Sean On 27/08/05, Duncan Golicher [EMAIL PROTECTED] wrote: Could anyone help with what should be a simple task? I have data as a fixed format (fortran) table. I have no trouble getting it into R using read.table. Each column is

[R] how to merge several data sets?

2005-08-27 Thread Cunningham Kerry
Dear R-helpers, I want to merge several data sets into one single data set. For example, there are three separate data sets like: Set 1: id age gender 01 12 M 03 15 F 04 19 M ... Set 2: id time x1 01 1 0.25 01 2 0.27 01 3 0.29 03 1 0.15 03 2 0.18 04 2 0.22 04 3 0.54 ... Set 3: id

Re: [R] two-tailed exact binomail test

2005-08-27 Thread Matthias Kohl
Peter Dalgaard wrote: katrina smith [EMAIL PROTECTED] writes: I am trying to find a definition for the two-tailed exact binomial test but have been unsuccessful. Can you help? Just read binom.test. The relevant bit is this: (m is the mean == n*p) else if (x m) {

[R] Defining an ex-gaussian PDF

2005-08-27 Thread Michael Kubovy
How does one define PDFs as yet undefined in R, such as the ex- gaussian, the sum of two RVs, one exponential, one Gaussian? The PDF would then be the convolution of an exponential PDF, dexp(), and a normal, dnorm(). Kindly cc me in your reply to r-help. Thanks,

[R] printCoefmat with more p-values?

2005-08-27 Thread Lukasz Komsta
Dear useRs, I would like to summarize results of several tests in groups of two columns - statistic, p-value, statistic, p-value etc. There would be nice to add significance stars, but printCoefmat allows to do it only to last column. Is there any way to do format such table without writing my

Re: [R] how to merge several data sets?

2005-08-27 Thread Peter Dalgaard
Cunningham Kerry [EMAIL PROTECTED] writes: Dear R-helpers, I want to merge several data sets into one single data set. For example, there are three separate data sets like: There is also one difficulty that the order of id may be different for the three sets and the order ot time

Re: [R] writing to a fixed format (fortran) file

2005-08-27 Thread jim holtman
One way of creating fixed width output is to use 'sprintf' to create the string and write the resulting data out. I used your input and just selected columns 7-11 as an example. You will have to supply whatever field width you want. I create a matrix and null out the row and column names and

[R] DRINGEND

2005-08-27 Thread John Thalani
Sehr geehter Mein Name ist John Thalani und ich bin der Leiter des Research Department Committee in der Standard Bank in Südafrika. Zur Zeit halte ich mich in den Niederlanden zu einer Fortbildung auf. Ich kontaktiere Sie bezüglich des Transfers einer sehr großen Summe Geldes vom Konto