代码拉取完成,页面将自动刷新
同步操作将从 kerrydu/statamacroe 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
{smcl}
{* 04July2021}{...}
{hline}
help for {hi:segmindex}
{hline}
{title:Calculate market segmentation index}
{marker syntax}{...}
{title:Syntax}
{p 4 10 2}
{cmd:segmindex } {it:varlist} [,{it:options}]
{synoptset 24 tabbed}{...}
{synopthdr}
{synoptline}
{synopt :{opt gen(newvar)}}specify a new varname to store the market segmentation index.{p_end}
{synopt :{opt w:mat(matname)}}specify the name of the adjacent matrix in mata.{p_end}
{synopt :{opt idm:at(vecname)}}specify the name of the ID vector corresponding to the adjacent matrix in mata.{p_end}
{synopt :{opt id(varname)}}specify the individual variable{p_end}
{synopt :{opt t(varname)}}specify the time variable.{p_end}
{synoptline}
{marker examples}{...}
{title:Examples}
{phang}
generate the adjacent matrix and ID vector:
{p 12 16 2}
{cmd:.use province.dta, clear}{break}
{p 12 16 2}
{cmd:.spmatrix create contiguity M, normalize(none) rook}{break}
{p 12 16 2}
{cmd:.spmatrix matafromsp W id = M}{break}
{phang}
calculate the market segmentation index :
{p 12 16 2}
{cmd:.use example.dta, clear}{break}
{p 12 16 2}
{cmd:.segmindex index*, id(_ID) t(year) idm(id) w(W) gen(segindex) }{break}
{title:Description}
{pstd}
{opt segmindex} use the price indices of several commodities and the geographical proximity information
to calculate the market segmentation index.
{marker references}{...}
{title:References}
{phang}
陈敏, 桂琦寒, 陆铭, 陈钊. 中国经济增长如何持续发挥规模效应?——经济开放与国内商品市场分割的实证研究[J]. 经济学(季刊), 2007, 7(1): 125-150.
{hline}
{title:Authors}
{phang}
{cmd:Kerry Du}, School of Management, Xiamen University, China.{break}
E-mail: {browse "mailto:[email protected]":[email protected]}. {break}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。