1 Star 0 Fork 2

wxq8888wxq/statamacroe

forked from kerrydu/statamacroe 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
segmindex.sthlp 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
kerrydu 提交于 2021-07-09 19:39 . 0
{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}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
其他
1
https://gitee.com/wxq8888wxq/statamacroe.git
[email protected]:wxq8888wxq/statamacroe.git
wxq8888wxq
statamacroe
statamacroe
master

搜索帮助