⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 haver.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
字号:
{smcl}
{* 06mar2005}{...}
{cmd:help haver}{right:dialog:  {bf:{dialog haver}}}
{hline}

{title:Title}

{p2colset 5 19 21 2}{...}
{p2col:{hi:[TS] haver} {hline 2}}Load data from Haver Analytics database{p_end}
{p2colreset}{...}


{title:Syntax}

{pstd}Describe contents of a Haver dataset

{p 8 17 2}
{cmd:haver}
{opt des:cribe}
{it:filename}
[{cmd:,}
{opt det:ail}]

{pstd}Describe specified variables in a Haver dataset

{p 8 17 2}
{cmd:haver}
{opt des:cribe}
{varlist}
{opt using}
{it:filename}
[{cmd:,}
{opt det:ail}]

{pstd}Load Haver dataset

{p 8 17 2}
{cmd:haver}
{opt use}
{it:filename}
[{cmd:,}
{it:use_options}]

{pstd}Load specified variables from a Haver dataset

{p 8 17 2}
{cmd:haver}
{opt use}
{varlist}
{opt using}
{it:filename}
[{cmd:,}
{it:use_options}]

{synoptset 33}{...}
{synopthdr:use_options}
{synoptline}
{synopt:{cmdab:ti:n:(}[{it:constant}]{cmd:,} [{it:constant}]{cmd:)}}load data
within specified date range {p_end}
{synopt:{cmdab:tw:ithin:(}[{it:constant}]{cmd:,} [{it:constant}]{cmd:)}}same as
{opt tin()}, except exclude the end points of range{p_end}
{synopt:{opth tv:ar(varname)}}create time variable {it:varname}{p_end}
{synopt:{opth hm:issing(missing:misval)}}record missing values as {it:misval}
{p_end}
{synopt:{opt fi:ll}}include observations with missing data in resulting
dataset and record missing values for them{p_end}
{synopt:{opt clear}}clear data in memory before loading the Haver dataset{p_end}
{synoptline}
{p2colreset}{...}


{title:Description}

{pstd}
Haver Analytics ({browse "http://www.haver.com"}) provides
economic and financial databases in the form of {opt .dat} files to which you
can purchase access.  The {opt haver} command allows you to use those datasets
with Stata.  The {opt haver} command is provided only with Stata for Windows.  

{pstd}
{opt haver describe} describes the contents of a Haver file.

{pstd}
{opt haver use} loads the specified variables from a Haver file into
Stata's memory.

{pstd}
If {it:filename} is specified without a suffix, {opt .dat} is assumed.


{title:Option for use with haver describe}

{phang}
{opt detail} specifies that a detailed report of all information available on
   the variables be presented.  By default, the Haver concepts data type,
   number of observations, aggregate type, difference type, magnitude, and
   date modified are not reported.


{title:Options for use with haver use}

{phang}
{cmd:tin(}[{it:constant}]{cmd:,} [{it:constant}]{cmd:)} 
   specifies the date range of the data to be loaded.  {it:constant} refers to
   a date constant specified in the usual way, e.g.,
   {cmd:tin(1jan1999, 31dec1999)}, which would mean from and including 1
   January 1999 up to and including 31 December.

{phang}
{cmd:twithin(}[{it:constant}]{cmd:,} [{it:constant}]{cmd:)}
   functions the same as {cmd:tin()}, except that the end points of the range
   will be excluded in the data loaded.

{phang}
{opth tvar(varname)} specifies the name of the time variable Stata will
   create; the default is {cmd:tvar(time)}.  The {opt tvar()} variable is the
   name of the variable that you would use to {helpb tsset} the data after
   loading, except that is unnecessary because {opt haver use}
   automatically {opt tsset}s the data for you.

{phang}
{opth "hmissing(missing:misval)"} specifies which of Stata's 27 missing values ({cmd:.},
   {cmd:.a}, ..., {cmd:.z}) is to be recorded when there are missing values in
   the Haver dataset.

{pmore}
   Two kinds of missing values can occur when loading a Haver dataset.  One is
   created when a variable's data does not span the entire time series, and
   these missing values are always recorded as {cmd:.} by Stata.  The other
   corresponds to an actual missing value recorded in the Haver format.
   {opt hmissing()} sets what is recorded when this second kind of missing
   value is encountered.  You could specify {cmd:hmissing(.h)} to cause
   Stata's {cmd:.h} code to be recorded in this case.

{pmore}
  The default is to store {cmd:.} for both kinds of missing values.  See
  {help missing}.

{phang}
{opt fill} specifies that observations with no data be left in the resulting
   dataset formed in memory and that missing values be recorded for them.  The
   default is to exclude such observations, which can result in the loaded
   time-series dataset having gaps.

{pmore}
   Specifying {opt fill} has the same effect as issuing the {opt tsfill}
   command after loading; see {helpb tsfill}.

{phang}
{opt clear} clears the data in memory before loading the Haver dataset.


{title:Examples}

{pstd}{bf:Describing data}

{phang2}{cmd:. haver describe dailytst}{p_end}
{phang2}{cmd:. haver describe FDB6 using dailytst, detail}{p_end}

{phang2}{cmd:. haver use dailytst.dat}{p_end}
{phang2}{cmd:. char list FDB6[]}{p_end}

{pstd}{bf:Merging variables}

{phang2}{cmd:. haver describe dailytst}{p_end}
{phang2}{cmd:. haver use dailytst.dat, clear}{p_end}
{phang2}{cmd:. egen fedfunds = rfirst(FFED FFED2 FFED3 FFED4 FFED5 FFED6)}{p_end}

{pstd}{bf:More complex command}

{phang2}{cmd:. haver use FFED FFED2 using dailytst.dat, tin(1jan1990,31dec1999) hmissing(.h)}{p_end}


{title:Also see}

{psee}
Manual:  {bf:[TS] haver}

{psee}
Online:  
{helpb infile},
{helpb insheet},
{helpb odbc},
{helpb tsset}
{p_end}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -