Announcement

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

  • Dtable error Too few quotes

    Hello,

    I am running a Dtable command that works effectively but once I add the export option, I get the following error. I cannot figure out for the life of me where the "Too few quotes" is coming from.

    too few quotes
    r(132);


    dtable ageatheplisavdose2 i.sex0female1male bmiwithin12months999ifm i.race0caucasian1africanameri i.ethnicity0nonhispanic1hispa i.ibddiagnosis0crohnsdiseas i.typeofuc0pancolitis1p i.crohnssubtypeageatdx116 i.crohnssubtypelocation1ili i.crohnssubtypediseasetype1 i.crohnssubtypeperianaldisease i.previoussurgicalresection0no lengthsinceibddiagnosismont i.treatmentgroup0nonsy i.notreatmentor5asamonotherapy i.vedolizumabmonotherapyno0y i.antitnfmonotherapyadalimumab i.antitnfcombinationtherapyno i.ustekinumabstelaramonotherap i.currentcorticosteroidsprednis i.currentbudesonideno0yes1 treatmentdurationinmonths9 i.smokingstatus0never1previ i.howmanyprevioushepatitisbva i.howmanydosesofhepatitisbva i.heplisavvaccine2nddose1y i.heplisavvaccine31yes0 i.connectivetissuediseaseno0 i.liverdiseaseno0yes1 i.severityofliverdiseasemild i.diabetesno0yes1 i.hemipalegiaparapalegiano0 i.solidcanceranyno0y i.charlsoncomorbidityscoremdca, by(group, tests) export(mytable.docx)

  • #2
    Can you reproduce this with a publicly available dataset?

    If not, can you show us the log when you add noisily in your [b]export()[/option], e.g. export(mytable.docx, noisily).

    Comment


    • #3
      I re-run this using a public dataset and everything works just fine. Could it be something with my variables? I don't assume that has anything to do with quotes.

      Comment


      • #4
        It could if you’re variable labels have double quotes in them.

        Comment

        Working...
        X