空间权重矩阵命令 spcx2st.pdfVIP

  • 463
  • 0
  • 约7.79千字
  • 约 4页
  • 2022-07-12 发布于浙江
  • 举报
help: spcs2xt dialog: spcs2xt Title spcs2xt: Convert Squared Cross Section to Panel Spatial Weight Matrix Table of Contents Syntax Description Options *** Examples Author Syntax spcs2xt varlist , panel(numlist) time(numlist) matrix(new_panel_weight_file) Description spcs2xt creates or generates squared panel spatial weight matrix and file among neighbor locations, from squared Cross Section weight matrix, that already exists in stata dta file, for using in panel spatial regression analysis.{ Options time: Number of time series in each cross section (must be balanced). matrix : Specify name of new panel spatial weight matrix file as stata dta file, that will be created. Examples clear all use spcs2xt.dta, clear db spcs2xt spcs2xt v1 v2 v3 v4, time(4) matrix(W) OR USE spcs2xt v*, time(4) matrix(W) mat list W mat list Wxt The final shape of cross section and panel spatial weight matrix will be as follows:. | 1 2 3 4 | | 0 1 1 1 | 1 0 1 0 | 1 1 0 1 | 1 0 1 0 | (1) (2) (3) (4) ||||| (1) | 0 0 0 0 | 1 0 0 0 | 1 0 0 0 | 1 0 0 0 | | 0 0 0 0 | 0 1 0 0 | 0 1 0 0 | 0 1 0 0 | | 0 0 0 0 | 0 0 1 0 | 0 0 1 0 | 0 0 1 0 | | 0 0 0 0 | 0 0 0 1 | 0 0 0 1 | 0 0 0 1 | ||||| (2) | 1 0 0 0 | 0 0 0 0 | 1 0 0 0 | 0 0 0 0 | | 0 1 0 0 | 0 0 0 0 | 0 1 0 0 | 0 0 0 0 |

文档评论(0)

1亿VIP精品文档

相关文档