Announcement

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

  • Set baseline category of date variable

    I want to set the baseline category of a date variable. I thought of using fvset, see below. It doesn't seem to allow specifying dates as baseline categories.

    Any ideas?

    MWE:
    Code:
    clear
    sysuse xtline1.dta
    
    gen random = runiform()
    gen binary = (random > 0.5)
    
    fvset td(09feb2002) day
    reg calories ib0.binary##i.day
    Last edited by Henry Strawforrd; 22 Sep 2021, 04:25.

  • #2
    The following is allowed:

    Code:
    reg calories ib0.binary##ib`=td(09feb2002)'.day

    Comment


    • #3
      Alternatively, you can:

      Code:
      fvset base `=td(09feb2002)' day

      Comment

      Working...
      X