mata_stata.hlp

来自「是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到」· HLP 代码 · 共 65 行

HLP
65
字号
{smcl}
{* 18mar2005}{...}
{cmd:help mata stata}
{hline}
{* index mata tt}{...}
{* index stata tt}{...}
{* index Stata, execute command}{...}

{title:Title}

{p 4 4 2}
{bf:[M-3] mata stata -- Execute Stata command}


{title:Syntax}

{p 8 16 2}
: {cmd:mata} {cmd:stata} {it:stata_command}


{p 4 4 2}
This command is for use in Mata mode following Mata's colon prompt.


{title:Description}

{p 4 4 2}
{cmd:mata stata} {it:stata_command}
passes {it:stata_command} to Stata for execution.


{title:Remarks}

{p 4 4 2}
{cmd:mata} {cmd:stata} is a convenience tool to keep you from having to 
exit Mata:

	: {cmd:st_view(V=., 1\5, ("mpg", "weight"))}
	{error:no variables defined}
		{error:st_view():  3500  invalid Stata variable name}
		{error:  <istmt>:     -  function returned error}
	r(3500);

	: {cmd:mata stata sysuse auto}
	  (1978 Automobile Data)

	: {cmd:st_view(V=., 1\5, ("mpg", "weight"))}

{p 4 4 2}
{cmd:mata stata} is for interactive use.  If you wish to execute a Stata 
command from a function, see 
{bf:{help mf_stata:[M-5] stata()}}.


{title:Also see}

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

{p 4 13 2}
Online:  help for 
{bf:{help mf_stata:[M-5] stata()}};
{bf:{help m3_intro:[M-3] intro}}
{p_end}

⌨️ 快捷键说明

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