代码拉取完成,页面将自动刷新
同步操作将从 连享会/readWind 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
{smcl}
{right:version: 2.0.0}
{cmd:help readWind} {right:April 13, 2019}
{hline}
{title:Title}
{p 4 4 8}{cmd:readWind} - Read the data downloaded from the Wind into Stata in a long form {p_end}
{title:Syntax}
{p 4 8 2}
{cmd:readWind namelist(min=1)}
{cmd:,}
{cmd:key(keywords)}
{cmd:timeType(time type)}
{cmd:t0(start time)}
{cmd:tn(end time)}
[{it:type(excel type)}
{it:sheet(excel sheet number)}
{it:encoding(encoding type)}
{it:tostring}]
{title:Description}
{p 4 8 2} ReadWind is a command to import downloaded data from the Wind database into Stata more efficiently. {p_end}
{p 4 8 2} {cmd: namelist} Namalist is the name of the imported variable, at least one variable. {p_end}
{p 4 8 2} {cmd: key} keywords of the object excel. {p_end}
{p 4 8 2} {cmd: timeType} timeType refers to whether the downloaded sample is annual, quarterly, monthly of daily, so its value is y/q/m/d. {p_end}
{p 4 8 2} {cmd: t0} Sample start time, for example, if you choose to download it from January 1995, then t0 could be set as 1995m1.
Quarterly and monthly correspond to 1995q1 and 1995 respectively. {p_end}
{p 4 8 2} {cmd: tn} Sample end time, for example, if your sample deadline is at January 2018, then tn could be set as 2018m1.
Quarterly, monthly and daily are also permitted. {p_end}
{p 4 8 2} {cmd: type(file type) sheet(excel sheet number) encoding(encoding type) tostring} are optional.
The optional attribute in type is corresponding to your data file, and it can be set to xls, xlsx or csv.
When your dataset is excel format and the suffix of your excel is xls, you should set type(xls), the default is xlsx;
Sheet specifies the number of tables in the object Excel, and the default is set to sheet1.
Note that if your original data is in CSV format, ignore the sheet option, and you can encoding the text to prevent scrambling.
The default encoding is utf-8. Option tostring forces variables to be converted to character type. {p_end}
{title:Example}
{p 4 8 2}{stata "readWind ROA, key(ROA) timeType(q) t0(1995q1) tn(2017q4)" :. readWind ROA, key(ROA) timeType(q) t0(1995q1) tn(2017q4) } {p_end}
{p 4 8 2}{stata "readWind ROA, key(ROA) timeType(q) t0(1995q1) tn(2017q4) type(xls) sheet(2)" :. readWind ROA, key(ROA) timeType(q) t0(1995q1) tn(2017q4) type(xls) sheet(1) } {p_end}
{p 4 8 2}{stata "readWind ROA, key(ROA) timeType(q) t0(1995q1) tn(2017q4) type(csv) encoding(utf16) " :. readWind ROA ROE, key(ROA_ROE) timeType(q) t0(1995q1) tn(2017q4) type(xls) sheet(1) } {p_end}
{p 4 8 2}{stata "readWind ROA, key(ROA) timeType(q) t0(1995q1) tn(2017q4) type(csv) encoding(utf16) " :. readWind ROA, key(ROA) timeType(q) t0(1995q1) tn(2017q4) type(csv) encoding(utf16) } {p_end}
{p 4 8 2}{stata "readWind ROA, key(ROA) timeType(q) t0(1995q1) tn(2017q4) type(csv) encoding(utf16) " :. readWind ROA ROE, key(ROA_ROE) timeType(q) t0(1995q1) tn(2017q4) type(csv) encoding(utf16) } {p_end}
{title:Author}
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: *
* *
* DevinChu *
* Department of Finance and Insurance, School of Business, NanJing University *
* Email: [email protected] *
* *
*::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。