[R] .Rprofile: contains invalid line(s)

2014-06-05 Thread Stephen Davies
, and if I run .First(), I can then successfully run joe(3). Why does R say this .Rprofile is invalid on startup? Is setting R_ENVIRON, as described, the correct procedure? And why did this suddenly become necessary? - Stephen Davies, Ph.D. (step...@umw.edu

[R] verbose source command?

2011-10-13 Thread Stephen Davies
(Apologies for the n00b question.) Hello, I'm teaching R in an introductory programming course and am walking the students through the baby steps. One thing I'd like to be able to do is have them copy the commands they type at the R console into a text file, and then execute the text file to see

Re: [R] chisq.test(): standardized (adjusted) Pearson residuals

2011-08-20 Thread Stephen Davies
I'm using chisq.test() on a matrix of categorical data, and I see that the residuals attribute of the returned object will give me the Pearson residuals. Actually they are not an attribute in the R sense, but rather a list value. Oh. I was just going by:

[R] chisq.test(): standardized (adjusted) Pearson residuals

2011-08-19 Thread Stephen Davies
I'm using chisq.test() on a matrix of categorical data, and I see that the residuals attribute of the returned object will give me the Pearson residuals. That's cool. However, what I'd really like is the standardized (adjusted) Pearson residuals, which have a N(0,1) distribution. Is there a way to