[R] Pearson Residuals in lm

2005-02-26 Thread Oli
i am trying to figure out the pearson residuals in a lm model: vl.lm - lm(VL ~ GSS) resid (vl.lm, ¡§pearson¡¨) but when i tried other types of residuals such as working, deviance, etc...they give me the exact numbers...is there anything wrong with what i am trying to do? thanks!

Re: [R] Problems Building R on AIX 5.2.0.0 (Update)

2005-02-26 Thread Prof Brian Ripley
Quotes from messages about Solaris 9 are not necessarily applicable to AIX, and in omitting the context you have misrepresented me. Please do bear in mind the `moral rights' on quoting given at http://www.jiscmail.ac.uk/help/policy/copyright.htm (Perhaps such a reference is needed in the posting

Re: [R] Pearson Residuals in lm

2005-02-26 Thread Prof Brian Ripley
On Sat, 26 Feb 2005, Oli wrote: i am trying to figure out the pearson residuals in a lm model: vl.lm - lm(VL ~ GSS) resid (vl.lm, ¡§pearson¡¨) but when i tried other types of residuals such as working, deviance, etc...they give me the exact numbers...is there anything wrong with what i am trying

[R] R-help Time Series

2005-02-26 Thread Ted Harding
Hi Folks, While I was browsing in the R-help archives yesterday, I got curious about the time series of the sizes of the monthly archives in MB. This turned out to have an unexpected feature or two, which I leave to readers to explore for themselves. I'm now wondering at what point in time we

Re: [R] R-help Time Series

2005-02-26 Thread Prof Brian Ripley
I think 1) You have the units wrong: these appear to be the figures quoted for KB of compressed files, and the compression is nothing like 1024:1. 2) This is not `a series' unless you add a time base, e.g. via a call to ts(). Surely subscribers are aware that they do not get many MB/day and

[R] read.table

2005-02-26 Thread Tilo Blenk
Maybe argument 'fill' of read.table is the solution. The default value is FALSE in read.table and, therefore, any line not having the same number of fields as the first line (not skipped) will make problems. If set to TRUE, as in read.delim and read.csv, lines with less number of fields get

Re: [R] R-help Time Series

2005-02-26 Thread Ted Harding
On 26-Feb-05 Prof Brian Ripley wrote: I think 1) You have the units wrong: these appear to be the figures quoted for KB of compressed files, and the compression is nothing like 1024:1. Sorry, yes, you are correct: it is KB and not MB (a slip of the eye on my part). 2) This is not `a

Re: [R] R-help Time Series

2005-02-26 Thread Gabor Grothendieck
Ted.Harding at nessie.mcc.ac.uk writes: : : Hi Folks, : : While I was browsing in the R-help archives yesterday, : I got curious about the time series of the sizes of : the monthly archives in MB. : : This turned out to have an unexpected feature or two, : which I leave to readers to explore

Re: [R] read.table

2005-02-26 Thread Uwe Ligges
Tilo Blenk wrote: Maybe argument 'fill' of read.table is the solution. The default value is FALSE in read.table and, therefore, any line not having the same number of fields as the first line (not skipped) will make problems. If set to TRUE, as in read.delim and read.csv, lines with less number

[R] plot.summary.Design()

2005-02-26 Thread Osman
Hello, Is there a way to get plot.summary.Design() to plot the variable labels instead of the variable name on the y axis of the confidence interval plot generated? I am using R2.0.1 on windows xp. Osman [[alternative HTML version deleted]]

Re: [R] R-help Time Series

2005-02-26 Thread Uwe Ligges
Prof Brian Ripley wrote: I think 1) You have the units wrong: these appear to be the figures quoted for KB of compressed files, and the compression is nothing like 1024:1. 2) This is not `a series' unless you add a time base, e.g. via a call to ts(). Surely subscribers are aware that they do

Re: [R] R-help Time Series

2005-02-26 Thread Ted Harding
On 26-Feb-05 Uwe Ligges wrote: So let's be immensely unfair and do some speculation ... Assuming 1000MB/month means a compressed archive file of (very) *roughly* 250MB. Looking at the data with linear models, lm(sqrt(MB) ~ monthindex) seems not to be the worst model (removing the

RE: [R] Problems Building R on AIX 5.2.0.0 (Update)

2005-02-26 Thread Paul Boutros
My apologies -- I had believed that by linking the source message I had made the detailed context available. I will be more careful in the future to correctly give full context. Paul -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: Saturday, February 26,

[R] Reshaping a data frame

2005-02-26 Thread Matthew Pharr
I am new to R. Having come from SPSS and SAS to this program, I know that my problem is reshaping from long to wide. How would I go about reshaping data frame (A) so that information for each record is contained on one row. I am aware of the R reshape function, but I am uncertain of how to

[R] averaging within columns

2005-02-26 Thread thomas hills
I have a dataframe with names in the first column and wait times between decisions in the second column. Since individuals make multiple decisions, I want the average for each individual. For example, the data might look like this namewtime jo 1 jo 2 jo

RE: [R] averaging within columns

2005-02-26 Thread BXC (Bendix Carstensen)
?tapply Bendix Carstensen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of thomas hills Sent: Saturday, February 26, 2005 6:17 PM To: r-help@stat.math.ethz.ch Subject: [R] averaging within columns I have a dataframe with names in the first

Re: [R] Reshaping a data frame

2005-02-26 Thread Thomas Lumley
On Sat, 26 Feb 2005, Matthew Pharr wrote: but I am uncertain of how to instruct R to reshape the data set because I need to move var1 (var1 is a survey question) out wide while placing the values of var2 (var2 is the answer to the survey question) under the correct survey question. Thank

Re: [R] averaging within columns

2005-02-26 Thread Marc Mamin
Hello Thomas, The function aggregate will do the job. Marc Mamin __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Hosting a R Graph Gallery?

2005-02-26 Thread Dan Bolser
On Fri, 18 Feb 2005, Romain Francois wrote: Hello Sander, That's a good idea and i am up to it. Right now i am in an exam period, so it's not really the better time, give me a couple of weeks and i will come up with a specific format of R files to submit to me that i could post-process to

Re: [R] Teaching R in 40 minutes. What should be included?

2005-02-26 Thread Frank E Harrell Jr
Spencer Graves wrote: I agree with Thomas and Georg: A 40 minute intro should be mostly Marketing and very little how to. I think you'll have a more effective sales job if you target, say, 4 examples averaging 5 slides each plus some general overview, max 25-30 slides. If I had

[R] read.table

2005-02-26 Thread John Maindonald
In addition to other suggestions made, note also count.fields(). cat(10 9 17 # First of 7 lines, 11 13 1 6, 9 14 16, + 12 15 14, 8 15 15, 9 13 12, 7 14 18, + file=oneBadRow.txt, sep=\n) nfields - count.fields(oneBadRow.txt) nfields [1] 3 4 3 3 3 3 3 table(nfields) ## Use with many

RE: [R] Sweave and \input or \include LaTeX commands

2005-02-26 Thread Mohamed Abdolell
I have used \input in my .Snw file and it works fine. - Mohamed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gorjanc Gregor Sent: February 23, 2005 10:50 AM To: r-help@stat.math.ethz.ch Subject: [R] Sweave and \input or \include LaTeX commands

RE: [R] Sweave and \input or \include LaTeX commands

2005-02-26 Thread Gorjanc Gregor
Imagine this situation: % --- a.Rnw start --- \documentclass{book} \usepackage{Sweave} \begin{document} % some toy example print=TRUE= x - 1:10 @ % now we input additional file \input{a1} % and lets look again at x print=TRUE= x @ \end{document} % --- a.Rnw end --- % --- a1.Rnw start ---

Re: [R] Sweave and \input or \include LaTeX commands

2005-02-26 Thread Gabor Grothendieck
If this were supported it should have a different command than the latex one or else one would not be able to do it at the latex level. One might want to do it at the latex level rather than the Sweave level in the case that one wants to have a vignette pass R CMD CHECK but the vignette depends

[R] POSIXct bug?

2005-02-26 Thread Spencer Graves
In R 2.0.1 under Windows 2000, at least in some cases, as.POSIXct adds one to the date: March1.1959.POSIXct - as.POSIXct(1959-03-01) March1.1959.POSIXlt - as.POSIXlt(1959-03-01) (Mar2.59 - as.Date(March1.1959.POSIXct)) [1] 1959-03-02 as.Date(March1.1959.POSIXlt) [1] 1959-03-01

Re: [R] POSIXct bug?

2005-02-26 Thread Gabor Grothendieck
Spencer Graves spencer.graves at pdf.com writes: : : In R 2.0.1 under Windows 2000, at least in some cases, as.POSIXct : adds one to the date: : : March1.1959.POSIXct - as.POSIXct(1959-03-01) : March1.1959.POSIXlt - as.POSIXlt(1959-03-01) : : (Mar2.59 - as.Date(March1.1959.POSIXct)) :