[R] Ongoing unhappiness with NA and factor behavior of distributed lm/predict.lm

2002-12-19 Thread Ritter, Christian C MCIL-CTGAS
Hi all, I'm still not quite happy with the NA and factor handling of lm and predict.lm in R1.6.1 (forcing me to use my not very skillfully crafted patches). Here is the problem 1:

Re[2]: [R] acceptable p-level for scientific studies

2002-12-19 Thread Michal Bojanowski
Wednesday, December 18, 2002, 3:12:51 PM, you wrote: FEHJ Want to open up the floodgates? Some personal opinions: FEHJ - Alpha=0.05 is arbitrary, silly, and boring FEHJ - Reporting P and letting the reader decide is a bit better FEHJ - Bayesian posterior probabilities are still better although

RE: [R] summary stats including NA's into new dataframe

2002-12-19 Thread Brett Magill
I think my dstats function does what you want, if I understand you coorrectly. You could apply it over rows or columns: http://home.earthlink.net/~bmagill/MyMisc.html It is there along with several other functions. On Thu, 19 Dec 2002 11:18:25 +1000 [EMAIL PROTECTED] wrote: Thanks Uwe,

[R] newbie question on dist

2002-12-19 Thread Saurav Pathak
hi, i have just begun using R, so please bear with me. i am trying to use cmdscale and display the result. i read the data using read.table(), calculate the proximity matrix using dist() and the display the result using the cmdscale(). this is very fine. in addition, i want the display to

Re: [R] Can I build an array of regrssion model?

2002-12-19 Thread Zhongming Yang
Thanks, But why I can't draw regression line with the following code: rawData = scan(c:/zyang/mass/data/A01/1.PRN, what=list(numeric(),numeric())); len = length(rawData[[1]]); mod = lm(rawData[[2]]~bs(rawData[[1]],10,degree=1)); plot(rawData[[1]],rawData[[2]],type='l', col=green, xlab=Da/z,

Re: [R] R function similar to UNIX uniq -c?

2002-12-19 Thread Hilmar M. Carders
Thanks to all who responded so quickly, table() is exactly what I was looking for. On Thu, 19 Dec 2002, Uwe Ligges wrote: Hilmar M. Carders wrote: Is there an R function that gives the equivalent of the UNIX command uniq -c which could be applied to a vector with duplicate values?

[R] disabling NA token as na.string in read.table

2002-12-19 Thread Vadim Ogranovich
Dear R-Users, I have a csv file that has NA tokens and these tokens are perfectly good values that need not to be converted to NA by read.table(). I tried to prevent the conversion by specifying the na.strings arg., but this seems to only add to the list of NA strings, not substitute.

Re: [R] New versions of lattice and grid

2002-12-19 Thread Deepayan Sarkar
On Thursday 19 December 2002 04:30 pm, Peter Dalgaard BSA wrote: Deepayan Sarkar [EMAIL PROTECTED] writes: two, the problem seems to be a small change in grid.text. The older version seems to work: grid.text - function(label, x=unit(0.5, npc), y=unit(0.5, npc),

Re: [R] disabling NA token as na.string in read.table

2002-12-19 Thread Peter Dalgaard BSA
Vadim Ogranovich [EMAIL PROTECTED] writes: Dear R-Users, I have a csv file that has NA tokens and these tokens are perfectly good values that need not to be converted to NA by read.table(). I tried to prevent the conversion by specifying the na.strings arg., but this seems to only add to

RE: [R] Printing correlation matrices (lm/glm)

2002-12-19 Thread Liaw, Andy
Try print(summary(lm2, corr=TRUE), symbolic.corr=FALSE). It *is* in the help page. HTH, Andy From: [EMAIL PROTECTED] Subject: [R] Printing correlation matrices (lm/glm) Hi Folks, I'm analysing some data which, in its simplest aspect, has 3 factors A, B, C each at 2 levels. If I do

[R] Getting graphs into LaTeX

2002-12-19 Thread Andrew Criswell
Hello ALL: I ran with success the following commands in R getting a file saved postscript() postscript('~/data/st202/2003/lecture00/lecture00-graph-01.eps', horizontal = FALSE, height = 6, pointsize =

Re: [R] Getting graphs into LaTeX

2002-12-19 Thread Ko-Kang Kevin Wang
Hi, - Original Message - From: Andrew Criswell [EMAIL PROTECTED] To: r-help [EMAIL PROTECTED] Sent: Friday, August 22, 2003 2:17 AM Subject: [R] Getting graphs into LaTeX Hello ALL: I ran with success the following commands in R getting a file saved

Re: [R] read.ssd {foreign} (Reading a permanent SAS dataset into anR data frame)

2002-12-19 Thread ripley
On Thu, 19 Dec 2002, Stephen Arthur wrote: I just downloaded and installed R 1.6.1 on my Windows machine where I also run SAS. I want to use the 'read.ssd' function so that I can convert a permanent SAS data set into an R data frame. I downloaded and installed the package 'foreign' on my