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

📄 m4_stata.hlp

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

{title:Title}

{p 4 4 2}
{bf:[M-4] stata -- Stata interface functions}


{title:Contents}

{col 5}   [M-5]
{col 5}Manual entry{col 22}Function{col 40}Purpose
{col 5}{hline}

{col 5}   {c TLC}{hline 16}{c TRC}
{col 5}{hline 3}{c RT}{it: Access to data }{c LT}{hline}
{col 5}   {c BLC}{hline 16}{c BRC}

{col 5}{bf:{help mf_st_nvar:st_nvar()}}{...}
{col 22}{cmd:st_nvar()}{...}
{col 40}number of variables
{col 22}{cmd:st_nobs()}{...}
{col 40}number of observations

{col 5}{bf:{help mf_st_data:st_data()}}{...}
{col 22}{cmd:st_data()}{...}
{col 40}load numeric data from Stata into matrix
{col 22}{cmd:st_sdata()}{...}
{col 40}load string data from Stata into matrix
{...}
{col 5}{bf:{help mf_st_store:st_store()}}{...}
{col 22}{cmd:st_store()}{...}
{col 40}store numeric data in Stata dataset
{col 22}{cmd:st_sstore()}{...}
{col 40}store string data in Stata dataset

{col 5}{bf:{help mf_st_view:st_view()}}{...}
{col 22}{cmd:st_view()}{...}
{col 40}make view onto Stata dataset
{col 22}{cmd:st_sview()}{...}
{col 40}same; string variables

{col 5}{bf:{help mf_st_subview:st_subview()}}{...}
{col 22}{cmd:st_subview()}{...}
{col 40}make view from view

{col 5}{bf:{help mf_st_viewvars:st_viewvars()}}{...}
{col 22}{cmd:st_viewvars()}{...}
{col 40}identify variables and observations 
{col 22}{cmd:st_viewobs()}{...}
{col 40}corresponding to view

{col 5}   {c TLC}{hline 26}{c TRC}
{col 5}{hline 3}{c RT}{it: Variable names & indices }{c LT}{hline}
{col 5}   {c BLC}{hline 26}{c BRC}

{col 5}{bf:{help mf_st_varindex:st_varindex()}}{...}
{col 22}{cmd:st_varindex()}{...}
{col 40}variable indices from variable names

{col 5}{bf:{help mf_st_varname:st_varname()}}{...}
{col 22}{cmd:st_varname()}{...}
{col 40}variable names from variable indices

{col 5}   {c TLC}{hline 26}{c TRC}
{col 5}{hline 3}{c RT}{it: Variable characteristics }{c LT}{hline}
{col 5}   {c BLC}{hline 26}{c BRC}

{col 5}{bf:{help mf_st_varrename:st_varrename()}}{...}
{col 22}{cmd:st_varrename()}{...}
{col 40}rename Stata variable

{col 5}{bf:{help mf_st_vartype:st_vartype()}}{...}
{col 22}{cmd:st_vartype()}{...}
{col 40}Storage type of Stata variable
{col 22}{cmd:st_isnumvar()}{...}
{col 40}whether variable is numeric
{col 22}{cmd:st_isstrvar()}{...}
{col 40}whether variable is string

{col 5}{bf:{help mf_st_varformat:st_varformat()}}{...}
{col 22}{cmd:st_varformat()}{...}
{col 40}Obtain/set format of Stata variable
{col 22}{cmd:st_varlabel()}{...}
{col 40}Obtain/set variable label
{col 22}{cmd:st_varvaluelabel()}{...}
{col 40}Obtain/set value label

{col 5}{bf:{help mf_st_vlexists:st_vlexists()}}{...}
{col 22}{cmd:st_vlexists()}{...}
{col 40}whether value label exists
{col 22}{cmd:st_vldrop()}{...}
{col 40}drop value 
{col 22}{cmd:st_vlmap()}{...}
{col 40}map values 
{col 22}{cmd:st_vlsearch()}{...}
{col 40}map text 
{col 22}{cmd:st_vlload()}{...}
{col 40}load value label
{col 22}{cmd:st_vlmodify()}{...}
{col 40}create or modify value label

{col 5}   {c TLC}{hline 45}{c TRC}
{col 5}{hline 3}{c RT}{it: Temporary variables & time-series operators }{c LT}{hline}
{col 5}   {c BLC}{hline 45}{c BRC}

{col 5}{bf:{help mf_st_tempname:st_tempname()}}{...}
{col 22}{cmd:st_tempname()}{...}
{col 40}temporary variable name
{col 22}{cmd:st_tempfilename()}{...}
{col 40}temporary filename

{col 5}{bf:{help mf_st_tsrevar:st_tsrevar()}}{...}
{col 22}{cmd:st_tsrevar()}{...}
{col 40}create time-series op.varname

{col 5}   {c TLC}{hline 44}{c TRC}
{col 5}{hline 3}{c RT}{it: Adding & removing variables & observations }{c LT}{hline}
{col 5}   {c BLC}{hline 44}{c BRC}

{col 5}{bf:{help mf_st_addobs:st_addobs()}}{...}
{col 22}{cmd:st_addobs()}{...}
{col 40}add observations to Stata dataset

{col 5}{bf:{help mf_st_addvar:st_addvar()}}{...}
{col 22}{cmd:st_addvar()}{...}
{col 40}add variable to Stata dataset

{col 5}{bf:{help mf_st_dropvar:st_dropvar()}}{...}
{col 22}{cmd:st_dropvar()}{...}
{col 40}drop variables
{col 22}{cmd:st_dropobsin()}{...}
{col 40}drop specified observations
{col 22}{cmd:st_dropobsif()}{...}
{col 40}drop selected observations
{col 22}{cmd:st_keepvar()}{...}
{col 40}keep variables
{col 22}{cmd:st_keepobsin()}{...}
{col 40}keep specified observations
{col 22}{cmd:st_keepobsif()}{...}
{col 40}keep selected observations

{col 5}{bf:{help mf_st_updata:st_updata()}}{...}
{col 22}{cmd:st_updata()}{...}
{col 40}query/set data-have-changed flag

{col 5}   {c TLC}{hline 26}{c TRC}
{col 5}{hline 3}{c RT}{it: Executing Stata commands }{c LT}{hline}
{col 5}   {c BLC}{hline 26}{c BRC}

{col 5}{bf:{help mf_stata:stata()}}{...}
{col 22}{cmd:stata()}{...}
{col 40}execute Stata command

{col 5}{bf:{help mf_st_macroexpand:st_macroexpand()}}{...}
{col 22}{cmd:st_macroexpand()}{...}
{col 40}expand Stata macros

{col 5}   {c TLC}{hline 49}{c TRC}
{col 5}{hline 3}{c RT}{it: Accessing e(), r(), s(), macros, matrices, etc. }{c LT}{hline}
{col 5}   {c BLC}{hline 49}{c BRC}

{col 5}{bf:{help mf_st_global:st_global()}}{...}
{col 22}{cmd:st_global()}{...}
{col 40}obtain/set Stata global

{col 5}{bf:{help mf_st_local:st_local()}}{...}
{col 22}{cmd:st_local()}{...}
{col 40}obtain/set local Stata macro

{col 5}{bf:{help mf_st_numscalar:st_numscalar()}}{...}
{col 22}{cmd:st_numscalar()}{...}
{col 40}obtain/set Stata numeric scalar
{col 22}{cmd:st_strscalar()}{...}
{col 40}obtain/set Stata string scalar

{col 5}{bf:{help mf_st_matrix:st_matrix()}}{...}
{col 22}{cmd:st_matrix()}{...}
{col 48}obtain/set Stata matrix
{col 22}{cmd:st_matrixrowstripe()}{...}
{col 48}obtain/set row labels
{col 22}{cmd:st_matrixcolstripe()}{...}
{col 48}obtain/set column labels
{col 22}{cmd:st_replacematrix()}{...}
{col 48}replace existing Stata matrix

{col 5}{bf:{help mf_st_dir:st_dir()}}{...}
{col 22}{cmd:st_dir()}{...}
{col 40}obtain list of Stata objects

{col 5}{bf:{help mf_st_rclear:st_rclear()}}{...}
{col 22}{cmd:st_rclear()}{...}
{col 40}clear {cmd:r()}
{col 22}{cmd:st_eclear()}{...}
{col 40}clear {cmd:e()}
{col 22}{cmd:st_sclear()}{...}
{col 40}clear {cmd:s()}

{col 5}   {c TLC}{hline 26}{c TRC}
{col 5}{hline 3}{c RT}{it: Parsing and verification} {c LT}{hline}
{col 5}   {c BLC}{hline 26}{c BRC}

{col 5}{bf:{help mf_st_isname:st_isname()}}{...}
{col 22}{cmd:st_isname()}{...}
{col 40}whether valid Stata name
{col 22}{cmd:st_islmname()}{...}
{col 40}whether valid local macro name

{col 5}{bf:{help mf_st_isfmt:st_isfmt()}}{...}
{col 22}{cmd:st_isfmt()}{...}
{col 40}whether valid {cmd:%}{it:fmt}
{col 22}{cmd:st_isnumfmt()}{...}
{col 40}whether valid numeric {cmd:%}{it:fmt}
{col 22}{cmd:st_isstrfmt()}{...}
{col 40}whether valid string {cmd:%}{it:fmt}
{col 5}{hline}


{title:Description}

{p 4 4 2}
The above functions interface with Stata.


{title:Remarks}

{p 4 4 2}
The following manual entries have to do with getting data from or putting 
data into Stata:

	{bf:{help mf_st_data:[M-5] st_data()}}
	{bf:{help mf_st_view:[M-5] st_view()}}
	{bf:{help mf_st_store:[M-5] st_store()}}
	{bf:{help mf_st_nvar:[M-5] st_nvar()}}

{p 4 4 2}
In some cases, you may find yourself needing to translate variable names
into variable indices and vice versa:

	{bf:{help mf_st_varname:[M-5] st_varname()}}
	{bf:{help mf_st_varindex:[M-5] st_varindex()}}
	{bf:{help mf_st_tsrevar:[M-5] st_tsrevar()}}

{p 4 4 2}
The other functions mostly have to do with getting and putting Stata's 
scalars, matrices, and returned results:

	{bf:{help mf_st_local:[M-5] st_local()}}
	{bf:{help mf_st_global:[M-5] st_global()}}
	{bf:{help mf_st_numscalar:[M-5] st_numscalar()}}
	{bf:{help mf_st_matrix:[M-5] st_matrix()}}

{p 4 4 2}
The {cmd:stata()} function, documented in 

	{bf:{help mf_stata:[M-5] stata()}}

{p 4 4 2}
allows you to cause Stata to execute a command that you construct in a 
string.


{title:Also see}

{p 4 13 2}
Manual:  {hi:[M-4] stata}

{p 4 13 2}
Online:  help for 
{bf:{help m4_intro:[M-4] intro}},
{bf:{help mata:[M-0] intro}}
{p_end}

⌨️ 快捷键说明

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