[Rd] Re: desiderata for data manipulation

bolker@zoo.ufl.edu bolker@zoo.ufl.edu
Wed, 1 Nov 2000 10:05:19 -0500 (EST)


  What does Stata do in this case?
  I suppose you could generate an error, or give the user the choice to
duplicate Y1/assume Y1 was the first or last case and put in NAs for the
others.

On 1 Nov 2000, Peter Dalgaard BSA wrote:

> (The problem would be that in principle you'd know what to do with
> 
> A B Y             
> 1 1 0.1           A Y1 Y2
> 1 2 0.3    ---->  1 0.1 0.3
> 2 1 0.7           2 0.7 0.9
> 2 2 0.9
> 
> but suppose there's a fifth line as in
> 
> A B Y  
> 1 1 0.1
> 1 2 0.3
> 2 1 0.7
> 2 2 0.9
> 2 2 1.1
> 
> Then you'd have two candidates for the value of Y2 for A==2 and it
> wouldn't help to assume that there are really two cases with A==2,
> because you can't really be sure about to which case the Y1 should
> belong.)
> 

-- 
318 Carr Hall                                bolker@zoo.ufl.edu
Zoology Department, University of Florida    http://www.zoo.ufl.edu/bolker
Box 118525                                   (ph)  352-392-5697
Gainesville, FL 32611-8525                   (fax) 352-392-3704

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._