📄 mf_logit.hlp
字号:
{smcl}
{* 29mar2005}{...}
{cmd:help mata logit()}
{hline}
{* index logit()}{...}
{* index invlogit()}{...}
{* index cloglog()}{...}
{* index invcloglog()}{...}
{title:Title}
{p 4 8 2}
{bf:[M-5] logit() -- Log odds and complementary log-log}
{title:Syntax}
{p 8 12 2}
{it:real matrix}{bind: }
{cmd:logit(}{it:real matrix X}{cmd:)}
{p 8 12 2}
{it:real matrix}{bind: }
{cmd:invlogit(}{it:real matrix X}{cmd:)}
{p 8 12 2}
{it:real matrix}{bind: }
{cmd:cloglog(}{it:real matrix X}{cmd:)}
{p 8 12 2}
{it:real matrix}
{cmd:invcloglog(}{it:real matrix X}{cmd:)}
{title:Description}
{p 4 4 2}
{cmd:logit(}{it:X}{cmd:)}
returns the log of the odds ratio of the elements of {it:X},
ln{c -(}{it:x}/(1-{it:x}){c )-}.
{p 4 4 2}
{cmd:invlogit(}{it:X}{cmd:)}
returns the inverse of the {cmd:logit()} of the elements of {it:X},
exp({it:x})/{c -(}1+exp({it:x}){c )-}.
{p 4 4 2}
{cmd:cloglog(}{it:X}{cmd:)}
returns the complementary log-log of the elements of {it:X},
ln{c -(}-ln(1-{it:x}){c )-}.
{p 4 4 2}
{cmd:invcloglog(}{it:X}{cmd:)}
returns the elementwise inverse of {cmd:cloglog()} of the elements of
{it:X},
1-exp{c -(}-exp({it:x}){c )-}.
{title:Conformability}
{p 4 4 2}
All functions return a matrix of the same dimension as input
containing element-by-element calculated results.
{title:Diagnostics}
{p 4 4 2}
{cmd:logit(}{it:X}{cmd:)} and
{cmd:cloglog(}{it:X}{cmd:)}
return missing when {it:x} <= 0 or {it:x} >= 1.
{title:Source code}
{p 4 4 2}
{view logit.mata, adopath asis:logit.mata},
{view invlogit.mata, adopath asis:invlogit.mata},
{view cloglog.mata, adopath asis:cloglog.mata},
{view invcloglog.mata, adopath asis:invcloglog.mata}
{title:Also see}
{p 4 13 2}
Manual: {hi:[M-5] logit()}
{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 + -