Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Logit F-Test for joint significance of subset of coefficients

    I am running a Logit with many variables. I want to compute the F-test for joint significance for a subset of these variables.

    Questions:
    1. Is that what I would get using lincom (see below)?
    2. How can I do it by hand?

    Example:
    Code:
    sysuse auto.dta, replace
    logit foreign price mpg headroom trunk weight length turn
    margins, dydx(*) atmeans
    lincom price + mpg

  • #2
    Originally posted by Henry Strawforrd View Post
    I want to compute the F-test for joint significance for a subset of these variables.

    Questions:
    1. Is that what I would get using lincom (see below)?
    No. You would get test of the sum of the coefficients.

    2. How can I do it by hand?
    With official Stata, you can get a test for joint significance in either of two ways, a Wald test or a likelihood-ratio test. See below.
    Code:
    quietly sysuse auto, clear
    logit foreign c.(price mpg headroom trunk weight length turn), nolog
    
    // Wald
    test price mpg
    
    // LR
    estimates store Full
    quietly logit foreign c.( /* price mpg */ headroom trunk weight length turn), nolog
    lrtest Full
    There is also a user-written command lmtest, which is available on SSC, to perform a Lagrange multiplier (score) test.
    Code:
    constraint define 1 _b[price] = 0
    constraint define 2 _b[mpg] = 0
    logit foreign c.(price mpg headroom trunk weight length turn), constraints(1/2) nolog
    lmtest
    Last edited by Joseph Coveney; 24 Oct 2022, 03:59.

    Comment

    Working...
    X