Announcement

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

  • Why is there mismatch error when using the table1_mc code?

    I am creating my table 1 using this code table1_mc, by (totACE) vars(Age contn %4.0f Empl cat %4.0f ethn cat %4.0f Educ cat %4.0f Sm cat %4.0f Alci\o cat %4.0f Cana cat %4.0f Depr contn %4.0f Anx %4.0f contn) nospace percent onecol missing total(before) and keep getting mismatch code. any recs? I'm relatively new to stata

  • #2
    Alci\o is that correct as a variable name?

    Is any of those variables string?

    Comment


    • #3
      It's meant to be Alco, I must have accidentally typed that after pasting.

      Comment


      • #4
        They shouldn't be, they are smoking, cannabis, alcohol status, employment, education, anxiety, and depression score. all have numerical values. if they are, do i destring them before using table1 code?
        Last edited by Julianna Cooper; 24 May 2023, 11:22.

        Comment

        Working...
        X