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
Using the LR test to discriminate between a random intercepts and a random slopes multilevel modelHi all. I have Brazilian survey data with political and socio-economic variables. To this dataset, I…
skewed GARCHHello Statalist, I'm a Ph.D student and I'm currently working on my project, basically I'm trying to…
program mimrgns already defined (error occurred while loading MIMRGNS.ado)Hi Statalisters, I have mi data and I want to obtaing ajusted mean and CI after "mi estimate, post:…
help with -esttab- (how to show variable names in csv output)Hello, I recently learned how to use -esttab- to export my regression output in csv format but I ca…
Generalized/Staggered DiD w/ state variationHello all, I'm considering running a generalize/staggered differences-in-differences model to analy…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a new matrix on social network
Post a Comment