I mistyped in stata "logistic a" where a is a binary variable and to my surprise it actually ran.
What is a logistic regression doing when it's running without any independent variables?
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It only takes a minute to sign up.
Sign up to join this communityI mistyped in stata "logistic a" where a is a binary variable and to my surprise it actually ran.
What is a logistic regression doing when it's running without any independent variables?
It's an intercept-only model. Stata's notation _cons
is the intercept term. With no other regressors, the odds is $p/(1-p)$ where $p$ is the proportion with positive response.
ShuntEffekt
.
$\endgroup$
– AdamO
Jan 7 '20 at 16:52
mean a
withregress a
with Odds/(Odds+1) from your output above. $\endgroup$ – Alexis Jan 4 '20 at 18:35