📄 mf_comb.hlp
字号:
{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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -