mf_missingof.hlp

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

HLP
77
字号
{smcl}
{* 16sep2004}{...}
{cmd:help mata missingof()}
{hline}
{* index missingof()}{...}
{* index missing values}{...}

{title:Title}

{p 4 8 2}
{bf:[M-5] missingof() -- Appropriate missing value}


{title:Syntax}

{p 8 8 2}
{it:transmorphic scalar}
{cmd:missingof(}{it:transmorphic matrix A}{cmd:)}


{title:Description}

{p 4 4 2}
{cmd:missingof(}{it:A}{cmd:)} returns a missing of the same element type 
as {it:A}:

{p 8 12 2}
o{bind:  }if {it:A} is real, a real missing is returned;

{p 8 12 2}
o{bind:  }if {it:A} is complex, a complex missing is returned;

{p 8 12 2}
o{bind:  }if {it:A} is pointer, {cmd:NULL} is returned;

{p 8 12 2}
o{bind:  }if {it:A} is string, "" is returned.


{title:Remarks}

{p 4 4 2}
{cmd:missingof()} is useful when creating empty matrices of the same type as
another matrix, e.g.,

		{cmd:newmat = J(rows(x), cols(x), missingof(x))}


{title:Conformability}

    {cmd:missingof(}{it:A}{it:)}
		{it:A}:  {it:r x c}
	   {it:result}:  1 {it:x 1}


{title:Diagnostics}

{p 4 4 2}
None.


{title:Source code}

{p 4 4 2}
Function is built-in.


{title:Also see}

{p 4 13 2}
Manual:  {hi:[M-5] missingof()}

{p 4 13 2}
Online:  help for 
{bf:{help m4_utility:[M-4] utility}}
{p_end}

⌨️ 快捷键说明

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