Stata 15 help for estat classification

[R] estat classification -- Classification statistics and table


estat classification [if] [in] [weight] [, options]

options Description ------------------------------------------------------------------------- Main all display summary statistics for all observations in the data cutoff(#) positive outcome threshold; default is cutoff(0.5) ------------------------------------------------------------------------- fweights are allowed; see weight. estat classification is not appropriate after the svy prefix.

Menu for estat

Statistics > Postestimation


estat classification reports various summary statistics, including the classification table.

estat classification requires that the current estimation results be from logistic, logit, probit, or ivprobit.


+------+ ----+ Main +-------------------------------------------------------------

all requests that the statistic be computed for all observations in the data, ignoring any if or in restrictions specified by the estimation command.

cutoff(#) specifies the value for determining whether an observation has a predicted positive outcome. An observation is classified as positive if its predicted probability is > #. The default is 0.5.


Setup . webuse lbw

Fit logistic regression to predict low birth weight . logistic low age lwt i.race smoke ptl ht ui

Report classification table and summary statistics . estat classification

Stored results

estat classification stores the following in r():

Scalars r(P_corr) percent correctly classified r(P_p1) sensitivity r(P_n0) specificity r(P_p0) false-positive rate given true negative r(P_n1) false-negative rate given true positive r(P_1p) positive predictive value r(P_0n) negative predictive value r(P_0p) false-positive rate given classified positive r(P_1n) false-negative rate given classified negative

Matrices r(ctable) classification table

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index