 Usage:  {xr,yr,ro} = replicdata(x{,y})  

 

 Input:



  x                      n x p matrix, the data matrix to reduce, in 

                         regression usually the design matrix. 

                         

  y                      optional , n x q matrix, in regression 

                         usually the observations of the dependent variable. 

                         

 Output:



  xr                     m x p matrix, reduced data matrix (sorted). 

                         

  yr                     m x 1 vector or m x (q+1) matrix, contains in the first 

                         column the number of replications. If y was given, sums 

                         of y-rows with same x-row are contained in the other 

                         q columns of r. 

                         

  ro                     n x 1 vector, index vector to rearrange estimators 

                         obtained by xr, yr according to the original 

                         observations. 

                         

--------------------------------------------------------------

(C) MD*TECH Method and Data Technologies, 21.9.2000

