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

📄 varname.hlp

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

{title:Title}

    {hi:varname} (from {hi:[U] 11.4 varlists})


{title:Description}

{pstd}
A {it:varname} is a single variable name, such as 

{p 8 34 2}{cmd:x}{p_end}
{p 8 34 2}{cmd:myvar}{p_end}
{p 8 34 2}{cmd:Myvar}{p_end}
{p 8 34 2}{cmd:inc92}{p_end}
{p 8 34 2}{cmd:reciprocal_of_miles_per_gallon}{p_end}
{p 8 34 2}{cmd:_odd}{p_end}
{p 8 34 2}{cmd:_1994}{p_end}

{pstd}
Variable names may be 1 to 32 characters long, and must start with 
{cmd:a}-{cmd:z}, {cmd:A}-{cmd:Z}, or {cmd:_}, and the remaining 
characters may be 
{cmd:a}-{cmd:z}, {cmd:A}-{cmd:Z}, {cmd:_}, or {cmd:0}-{cmd:9}.

{pstd}
When we use the term varname, we usually mean an existing varname -- a
variable that already exists in the dataset.  The alternative would be a
{it:{help newvar}}.

{pstd} 
When referring to an existing varname, we can abbreviate -- use only some of
the leading characters -- as long as we specify enough to uniquely identify 
the variable:

{pin}
{cmd:Myv} might be a unique abbreviation for {cmd:Myvar}.

{pin}
{cmd:reciprocal} might be a unique abbreviation for
{cmd:reciprocal_of_miles_per_gallon}.

{pstd}
Sometimes we can use the full {it:{help varlist}} notation, but 
it must identify a single variable:

{pin}
{cmd:my*r} might uniquely identify {cmd:myvar}

{pin}
{cmd:r*gallon} might uniquely identify
{cmd:reciprocal_of_miles_per_gallon}.

{pstd}
In the varlist notation, 
{cmd:*} means zero or more characters go here.

{pstd}
Varnames are often specified inside options, and in that case, sometimes 
the varlist notation is allowed, and sometimes it is not.  Abbreviations
are always allowed, however, assuming you have not turned them off; 
see {helpb set varabbrev}.


{title:Examples}


{phang}{cmd:. histogram mpg}

{phang}{cmd:. stset failtime, failure(outcome)}


{title:Also see}

{psee}
Manual:  {bf:[U] 11 Language syntax},{break}
{bf:[U] 11.2.3 Variable-name abbreviation},{break}
{bf:[U] 11.4 varlists}

{psee}
Online:  {help language}, {help varlist}, {help newvar}
{p_end}

⌨️ 快捷键说明

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