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 Pooled OLS Panel Data RegressionDear all, Thanks for your time reading this. My data has small T and large N. When I use Hausman t…
Splitting one variable containing two variable dataHello I have a variable 'implementscheme' which contains the names of various agriculture implements…
Diff-in-diff with matchingHello, I am working on a project which uses diff-in-diff with propensity score matching techniques a…
Panel data - all dummies omitted because of collinearityHi everybody, I'm using panel data to examine the effect of immigration on house prices and I am tr…
long invalid varnameHello! I have data where the ID is a string variable str123, and I was trying to merge it to anothe…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a new matrix on social network
Post a Comment