mf_comb.hlp

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

HLP
59
字号
{smcl}
{* 28mar2005}{...}
{cmd:help mata comb()}
{hline}
{* index comb()}{...}
{* index combinatorial function}{...}

{title:Title}

{p 4 8 2}
{bf:[M-5] comb() -- Combinatorial function}


{title:Syntax}

{p 8 12 2}
{it:real matrix}
{cmd:comb(}{it:real matrix n}{cmd:,} {it:real matrix k}{cmd:)}


{title:Description}

{p 4 4 2}
{cmd:comb(}{it:n}{cmd:,} {it:k}{cmd:)}
returns the elementwise combinatorial function "{it:n}-choose-{it:k}", the
number of ways to choose {it:k} items from {it:n} items, regardless of order.


{title:Conformability}

    {cmd:comb(}{it:n}{cmd:,} {it:k}{cmd:)}:
		{it:n}:  {it:r1 x c1}
		{it:k}:  {it:r2 x c2}, {it:n} and {it:k} r-conformable
	   {it:result}:  max({it:r1},{it:r2}) {it:x} max({it:c1},{it:c2})


{title:Diagnostics}

{p 4 4 2}
{cmd:comb(}{it:n}{cmd:,} {it:k}{cmd:)} returns missing when either argument is
missing or when the result would be larger than 10^300.


{title:Source code}

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


{title:Also see}

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

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

⌨️ 快捷键说明

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