Dear all
I have row data on social networks like
person ID neighbor ID Did you know him? (yes =1)
1 1 0
1 2 1
1 3 0
2 1 1
2 2 0
2 3 1
3 1 0
3 2 1
3 3 0
I would like to know STATA commend to make this data into a 3 by 3 matrix like
1 2 3
1 0 1 0
2 1 0 1
3 0 2 0
Can anybody give me some advice on this?
Please also refer to excel sheet attached.
Thank you very much.
Yuko
Related Posts with Creating a new matrix on social network
Fixed effects omitted variables due to collinearity (xtreg, fe)Hello everyone, Hope you're well. First of all, I'm new to all of this. I'm struggling to identify …
Upon saving my stata ouput as a .tex file, sigificance is disappearing. Why is this happening?hi statalist, I am having a peculiar problem while using estout to save my output as a tex file. I …
System GMM - Interpreting the outputHello, I am estimating whether the total value of stocks traded and credit to the private sector ha…
Need Help: On Constructing Some Tables with Attendance DataThis is how my Attendance data looks like: Date TeachersName Student1 Student2 Student3 Student4 …
Merge based on several variables matchingHi fellow Stata users, I'm working on a population of cancer patients and for that I have two datas…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a new matrix on social network
Post a Comment