Announcement

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

  • Asdoc "conformability error"

    Dear Statalist,

    I am getting an error message when running the asdoc command. The first code works fine, but the second code returns:
    Code:
     func_nested_reg():  3200  conformability error
                     <istmt>:     -  function returned error
    r(3200);

    Code:
     asdoc reg lrhourlywage c.ltotalexports_china#i.schoolinglevel1 ltotaltrade_china ltotaltrade_eu15 ltotaltrade_usa ltotaltrade_mca ltotaltrade_row i.schoolinglevel1 female age agesq married rural i.region i.occupationgroup i.isic1 i.establishmentsize i.year  [fweight = factor], vce(cluster region) nest replace add(Year dummies, YES, Industry Dummies, Yes, Region Dummies, Yes, Occupation Dummies, Yes, Establishment Dummies, Yes) drop(i.region i.occupationgroup i.year i.isic1 i.establishmentsize)

    Code:
     asdoc reg lrhourlywage c.ltotalexports_china#i.schoolinglevel1 ltotaltrade_china ltotaltrade_eu15 ltotaltrade_usa ltotaltrade_mca ltotaltrade_row i.schoolinglevel1 female age agesq married rural i.region i.occupationgroup  i.isic1 i.establishmentsize [fweight = factor], vce(cluster region) nest add(Year Dummies, YES, Industry Dummies,Yes, Region Dummies, Yes, Occupation Dummies, Yes, Establishment Dummies, Yes) drop(i.region i.occupationgroup i.isic1 i.establishmentsize )
    The only difference between the above codes in the i.year.
    However, to understand what was going on, I ran the first regression twice changing 'nest replace' to 'nest append' for the second regression and the same error is presented even though nothing changed.

    I hope you can help!
    Thank you in advance
    Ray
    Last edited by Ray Uddin; 31 Jul 2020, 17:52.

  • #2
    Please post some example data (using dataex from ssc) to reproduce the error.
    Regards
    --------------------------------------------------
    Attaullah Shah, PhD.
    Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
    FinTechProfessor.com
    https://asdocx.com
    Check out my asdoc program, which sends outputs to MS Word.
    For more flexibility, consider using asdocx which can send Stata outputs to MS Word, Excel, LaTeX, or HTML.

    Comment

    Working...
    X