My dataset has variables such as province, and five other items (club church library hospital school) which are coded as yes/no.
Firstly I want to create a matrix of the five items using the following code, but not being able to store them as a new variable (services):
Code:
mkmat club-school, matrix(a) matrix list a
Thanks for your help in advance!
Code:
input byte(province club church library hospital school) 35 1 0 1 1 0 53 1 0 0 0 0 35 1 0 1 1 1 52 1 0 1 0 0 35 1 0 1 0 1 33 1 0 1 1 1 11 1 1 1 1 1 19 1 0 1 1 1 73 1 0 1 0 0 81 1 0 1 0 0 64 1 0 1 1 0 12 1 0 1 0 0 73 1 0 1 1 0 32 1 0 1 1 0 14 1 0 1 1 1 33 1 0 1 1 1 53 1 1 1 0 0 16 1 0 1 1 1 81 1 0 1 0 0 34 1 1 1 1 1 32 1 0 1 1 0 32 1 0 1 1 0 64 1 0 1 1 0 32 1 0 1 1 0 32 1 1 1 1 0 33 1 0 1 0 1 53 1 0 0 0 0 35 1 0 1 0 1 12 1 0 1 1 1 62 1 0 1 1 1 74 1 0 1 1 0 81 1 . 1 1 1 33 1 0 1 1 1 53 1 0 0 0 0 34 1 0 1 0 1 34 1 1 1 0 1 73 1 0 1 1 0 12 0 0 0 0 0 36 1 0 1 0 0 35 1 0 1 0 0 32 1 0 1 1 0 12 1 0 1 0 0 31 1 0 1 1 0 73 1 0 1 1 1 32 1 0 1 1 1 19 1 0 1 1 0 32 1 1 1 1 0 53 1 0 0 0 0 12 0 0 0 0 0 15 1 0 1 0 0 35 1 1 1 1 1 65 1 0 1 1 0 74 1 0 0 0 0 51 1 0 1 0 0 65 1 0 1 0 0 71 1 0 1 1 0 52 1 0 1 0 0 64 1 0 1 0 0 53 1 0 0 0 0 74 1 0 1 0 0 65 1 0 1 0 0 33 1 0 1 1 0 14 7 7 7 7 7 73 1 0 1 1 0 91 1 0 0 0 0 74 1 0 1 1 0 14 1 0 1 1 1 74 7 7 7 7 7 11 1 0 1 0 0 52 1 0 1 1 1 82 1 0 1 0 1 36 1 0 1 1 0 61 1 1 1 1 0 51 1 0 1 1 1 13 1 0 1 1 0 31 1 0 1 1 0 11 1 1 1 1 0 76 1 0 1 1 1 63 1 0 1 1 1 31 1 1 1 1 0 52 1 0 1 1 1 33 1 0 1 0 1 11 1 0 1 0 0 35 1 1 1 0 1 33 1 0 1 1 0 74 1 0 1 1 0 81 1 0 0 1 0 36 1 0 1 1 1 52 1 0 1 0 0 74 1 0 1 0 0 72 1 0 0 0 0 73 1 1 0 0 1 13 1 0 1 0 1 11 1 0 0 1 0 74 1 0 1 0 0 33 1 0 1 1 0 53 7 7 7 7 7 21 1 0 1 1 0 32 1 0 1 1 0 18 1 0 1 0 1 end
0 Response to Creating a variable as a matrix of five others
Post a Comment