Announcement

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

  • Type Mismatch when using "count" command

    Hi all, I am trying to winsorize my variables at the 1st and 99th percentiles and count them.

    winsor2 cgscore enscore soscore count* tresgs $control, cuts (1 99) replace

    However, I am getting a type mismatch even though they're already in the same type format. Does anyone know how to solve this problem?
    Thank you in advance!

  • #2
    Welcome to the Statalist Forum. The members of this forum are nice and helpful, but you are expected to have read the Forum's FAQ before posting. The most often request which also applies to your case is to read section #12 (here: to tell us where the command you are using comes from if it is community-contributed and to use dataex to show us your data and), but I would recommend to read it completely. And I would add to place the commands and output you want to show us into code delimiters, see also here.
    Last edited by Dirk Enzmann; 11 May 2024, 03:06.

    Comment


    • #3
      It seems that you are using winsor2 from SSC so how does count come into your question?

      A best guess, noting that Dirk Enzmann is correct, is that you are trying to Winsorize one or more string variables.

      Comment

      Working...
      X