Re: [R] Matrix of dummy variables from a factor

2005-12-06 Thread Doran, Harold
Good point. Probably not for any subsequent use in R. But, I work in an org that uses SAS, HLM, SPSS, among others. As a part of our control processes at times we replicate analyses in different software programs. For instance, we will replicate lmer functions using HLM. But, HLM requires a matrix

Re: [R] R is GNU S, not C.... [was how to get or store .....]

2005-12-06 Thread Patrick Connolly
On Tue, 06-Dec-2005 at 01:00PM +, Adaikalavan Ramasamy wrote: | Yes, it drives me mad too when people use = instead of - for | assignment and suppress spaces in an naive attempt for saving space. | | As an example compare | | o=fn(x=1,y=10,z=1) | | with | | o - fn( x=1,

Re: [R] Matrix of dummy variables from a factor

2005-12-06 Thread Ted Harding
On 06-Dec-05 Berton Gunter wrote: But note: There are (almost?) no situations in R where the dummy variables coding is needed. The coding is (almost?) always handled properly by the modeling functions themselves. Question: Can someone provide a straightforward example where the dummy

Re: [R] reading in data with variable length

2005-12-06 Thread Gabor Grothendieck
On 12/6/05, John McHenry [EMAIL PROTECTED] wrote: Everything has slowed down with #1 and #3 by about 50%. Can't do #2 #4 : ta.num - lapply(ta0, scan, sep = ,) Error in file(file, r) : unable to open connection scan seems to want a file or a connection ... Building on Andy's variation: n

[R] [Fwd: Re: Matrix of dummy variables from a factor]

2005-12-06 Thread Charles H. Franklin
__ 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] Matrix of dummy variables from a factor

2005-12-06 Thread roger koenker
On Dec 6, 2005, at 3:27 PM, Berton Gunter wrote: But note: There are (almost?) no situations in R where the dummy variables coding is needed. The coding is (almost?) always handled properly by the modeling functions themselves. Question: Can someone provide a straightforward example

Re: [R] strange behavior of loess() predict()

2005-12-06 Thread Hong Ooi
___ The problem appears to be in how your original data has several tied values: table(x) x 1.8 2 2.2 2.4 2.6 2.8 3 3.2 3.4 3.6 4 1 2 2 2 5 7 2 3 1 2 1 IIRC the maths and

Re: [R] R is GNU S, not C.... [was how to get or store .....]

2005-12-06 Thread Hong Ooi
___ Hm, a style war on R-Help. I wonder if this goes for long enough, we'll come to the question of where to put the braces. ;) Personally, I always use - instead of = where applicable. In addition to the

[R] Constructing a transition matrix

2005-12-06 Thread Chris Stubben
Hi again, I almost figured this out, but still need some help on the last part. I can use prop.table to get survival probabilities... A - t(prop.table( table(trans$class, trans$fate),1) ) rep seed veg dead 0.000 0.333 0.000 rep 0.500 0.000

Re: [R] R is GNU S, not C.... [was how to get or store .....]

2005-12-06 Thread ronggui
=== 2005-12-07 04:17:03 您在来信中写道:=== From: [EMAIL PROTECTED] ronggui a �crit : I think it is NOT just for historical reason. see the following example: rm(x) mean(x=1:10) [1] 5.5 x Error: object x not found x is an argument local to mean(), did you expect another

Re: [R] R is GNU S, not C.... [was how to get or store .....]

2005-12-06 Thread GuangXing
I think - is better than = in some cases. === 2005-12-07 08:51:30 Write:=== === 2005-12-07 04:17:03 您在来信中写道:=== From: [EMAIL PROTECTED] ronggui a �crit : I think it is NOT just for historical reason. see the following example: rm(x) mean(x=1:10) [1] 5.5 x

Re: [R] Matrix of dummy variables from a factor

2005-12-06 Thread Charles H. Franklin
__ 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] R is GNU S, not C.... [was how to get or store .....]

2005-12-06 Thread Philippe Grosjean
Hello, About the R style war: as soon as you write code for yourself, you can do what you want, of course. If your code is shared (for instance, code in packages submitted to CRAN), it makes sense to render it so that it is easier to read *by a majority of people*. The only way to make sure

Re: [R] Matrix of dummy variables from a factor

2005-12-06 Thread Hong Ooi
___ Interestingly, for the project I'm working on I actually do call model.matrix directly. The project is profit optimization for insurance, where you try to maximize returns as a function of your premium

Re: [R] R is GNU S, not C.... [was how to get or store .....]

2005-12-06 Thread Patrick Connolly
On Tue, 06-Dec-2005 at 04:21PM +, Patrick Burns wrote: | I don't put in extraneous ';' because I maybe get a | blister on my little finger. | | I suspect that those who find the semi-colons ugly in | R do not find them ugly in C. Nor in perl, mysql or php. I quite like how R is rather

Re: [R] R is GNU S, not C.... [was how to get or store .....]

2005-12-06 Thread Berwin A Turlach
vic == vincent [EMAIL PROTECTED] writes: vic ronggui a __ 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] LME data with complicated random correlational structures

2005-12-06 Thread Spencer Graves
Have you received any replies to this post? I haven't seen any, so I will attempt a few comments. First, I'm overwhelmed with the details in your discussion. I suggest that for each of your question, you try to think of an extremely simple example that would test your question, as

[R] Plot

2005-12-06 Thread Apple Ho
Hello, I have a problem about using the command plot. Suppose I have some points, and one of them is (0,0), how can I show the figure with this point which is at the corner? Thanks for your kind help. Cheers, Apple [[alternative HTML version deleted]]

Re: [R] Plot

2005-12-06 Thread paul sorenson
Apple Ho wrote: Hello, I have a problem about using the command plot. Suppose I have some points, and one of them is (0,0), how can I show the figure with this point which is at the corner? How close to the corner do you want it? plot(0, 0, xlim=c(0, 1), ylim=c(0,1)) you could also add:

Re: [R] Constructing a transition matrix

2005-12-06 Thread Peter Dalgaard
Chris Stubben [EMAIL PROTECTED] writes: Hi again, I almost figured this out, but still need some help on the last part. I can use prop.table to get survival probabilities... A - t(prop.table( table(trans$class, trans$fate),1) ) rep seed veg dead 0.000

Re: [R] R is GNU S, not C.... [was how to get or store .....]

2005-12-06 Thread vincent
Philippe Grosjean a écrit : So, who said there is an R style war? There is one set of rules to follow. Point. I quite agree with your message, but as far as I understood today, there is no official R style chart, (official = from the R core dev team). http://www.maths.lth.se/help/R/RCC/ is

Re: [R] Coefficient of association for 2x2 contingency tables

2005-12-06 Thread Bernardo Rangel tura
At 04:48 PM 12/6/2005, Alexandre Santos Aguiar wrote: Hi, Found no measure of association or correlation for 2x2 contingency tables in fullrefman.pdf or google. Can someone point to a package that implements such calculations? Thanx. -- Alexandre Santos Aguiar IN vcd poackage have

<    1   2