Announcement

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

  • Imbalance command before Cem command

    Hi,

    I am trying to use the imbalance command before using the cem command in order to get a measure of the imbalance between baseline covariates:

    imbalance sex aged histo geogr, treatment(raceb)
    file sex.dta not found
    r(601);

    many thanks for the help
    Arnaud

  • #2
    Thanks for sharing your example data and telling us that this imbalance is in fact a user written command, as we ask you to.

    Anyways, when I Google this, the syntax says it's
    Code:
    imbalance dataname varname treatname blockname savfile
    So your dataset isn't named sex.

    Comment


    • #3
      Hi Arnaud,

      I assume you mean the command described in the article cem: Coarsened exact matching in Stata (Stata Journal | Article (stata-journal.com)) with the syntax described as
      Code:
       imbalance varlist [if ] [in] [, treatment(varname) breaks(string) miname(string) misets(#) useweights ]
      The imbalance command seems to be another user-written command as you noticed but for me, the command mentioned is accessible via
      Code:
      imb varlist [if] [in] [, options]
      David

      Comment


      • #4
        thank you David

        Comment

        Working...
        X