Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double rGDP .1382092096959387 .014146426377938484 .027488150167805852 .02106609526097813 .014813232383072512 .02716049831787797 .009517616911102122 .009786135114663565 .006719476339037101 .008605657784068762 .006978261822747705 .003053255804518748 .0021468348244712164 .0014914328143139273 .00410335729024301 .006286140914971354 .004096475569136358 .01456329482649903 .004192934359981258 .012330405718094161 .008472070469348452 .0022984456944708516 .002247504573231376 .007435929046440541 .0063184194639716 .021838158828943417 .016896755373362535 .008338352074226112 .004900522755197321 .004122216483085287 .007053387278161984 .013257619326913932 .013671685931881053 .01051969381453211 .010339130560733777 .0053878469198497736 .011172687222302071 .0033487765708986694 .009318833481421417 .0029176367435669506 .009795359897956529 .010763470592210115 .004187248747543143 .011735775859328706 .008422817008285132 .01058803585914126 .040633122274224 .04662913310434898 .04731081673511357 .18262875323334388 .01475801476371676 .01233610771558253 .006613825534999745 .006718362155619832 .007138671464733702 .010811757335308453 .012035409273322367 .012747438017157244 .012828445705612685 .0042635375415254525 .007260133842266102 .005494661062455158 .007688537366205414 end
SA SB SC SD SE SF SG SH SK SL SM SN SO SP
.30229 .08977835 .0815295 .03925564 .04873896 .12323789 .11783615 .02929192 .04859169 .01511463 .12035968 .30436756 .24910508 .35174274
I want to create a new matrix (63x14) (or a data set) where each row is the result of multiplying each observation in data set 1(matrix 1) with each of elements of the above vector. I really look forward to your help. Thank you in advance and Merry Christmas!
0 Response to Multiply obverations of a variable with a vector to creat a new data set
Post a Comment