Re: [Rd] model.response() as a generic function?

2005-10-29 Thread Olivia Lau
Hi, We were thinking of the following: R has a great user interface -- formula + data, followed by terms, model.frame(), model.matrix(), model.response() -- for single equation models (e.g., univariate response models). We're trying to extend that user interface to multiple equation models so

Re: [Rd] quirk in "sample" (PR#8264)

2005-10-29 Thread ligges
[EMAIL PROTECTED] wrote: > Hi, > There is a property of "sample" that I believe is undesirable, > at least for me. > sample(1:3,1) > chooses from the set {1,2,3} > but > sample(3:3,1) > chooses also from {1,2,3} even though > it would be used to sample from an interval [a,b] in general. > So a

[Rd] quirk in "sample" (PR#8264)

2005-10-29 Thread ihd
Hi, There is a property of "sample" that I believe is undesirable, at least for me. sample(1:3,1) chooses from the set {1,2,3} but sample(3:3,1) chooses also from {1,2,3} even though it would be used to sample from an interval [a,b] in general. So a program that generates an interval [a,b] for