Thank you for your reply,Rick. I did define h in data all. v1, v2 as two separate data sets are defined as well. Sorry I did not give my full programming since it is too big. Sorry there is typo in my previous q, if h=1,r=w*var1 ,if h=2, r=w*var2 the reason I need to draw each obs ( representing one respondent of a survey ) into a matrix is: my final goal is to compute a ratio s=(r-rf)/var, and use s as my dependent variable in my regression analysis. In this situation ,i need to read each observation as a separate matrix, does it make sense? or can you offer other efficient way? thanks a lot!
... View more