Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Overall p-value for categorical variable in logistic regression


From   Kassie Melius <[email protected]>
To   [email protected]
Subject   st: Overall p-value for categorical variable in logistic regression
Date   Mon, 1 Jul 2013 10:38:33 +0100

Dear Statlisters

I'd like to get an overall p-value for a categorical variable in my
multivariable model so as to display it in a table, rather than having
p-values for each level of the variable. Which of the below is
correct, if any at all?

1. Compare fit of the expanded categorical variable in the model using
LR test  (here indepvar1, for example)

logistic depvar i.indepvar1 i.indepvar2 i.indepvar3 , baselevels
est store A
logistic depvar i.indepvar2 i.indepvar3 , baselevels
est store B
lrtest A B

where i get LR p=0.003


2.Input categorical variable not as indicator and take overall effect p-value
logistic depvar indepvar1 i.indepvar2 i.indepvar3 , baselevels

where i get p=0.001

Which should I choose (or whatever you suggest), and could you explain
how these two p-vals differ?

Thank you so much for your help!

Kassie
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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