Announcement

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

  • Iebaltab problem

    Dear all,

    I have a simple problem. I am running the following code: iebaltab aggregate_sd , grpvar(treatment) browse
    Treatment is a dummy (0/1) and aggregate_sd are standardized testscores. I want to check if my treatment and control group are balanced.

    However, I always get this error: type mismatch
    r(109); Return code 109
    type mismatch
    In an expression, you attempted to combine a string and numeric
    subexpression in a logically impossible way. For instance, you
    attempted to subtract a string from a number or you attempted
    to take the substring of a number.


    Now, I checked everything: aggregate sd is numerical, treatment as well. So this error makes no sense to me. Has anyone an idea? Also, I changed float to double, double to float, everything...

    Here are parts of my dataset:
    ---------------------- copy starting from the next line -----------------------
    Code:
    * Example generated by -dataex-. For more info, type help dataex
    clear
    input double aggregate_sd float treatment
    -1.1429336071014404 0
     -.6859450936317444 0
     -.5503984689712524 0
      1.758466124534607 0
      .4320257008075714 0
    end


  • #2
    after I change the value of treatment to 1 in a couple of observations (I chose the last 2), it worked fine for me; please post an example where the problem occurs

    Comment


    • #3
      You mean like the output I get in stata?

      Comment


      • #4
        Originally posted by Simeon Lauterbach View Post
        Dear all,

        I have a simple problem. I am running the following code: iebaltab aggregate_sd , grpvar(treatment) browse
        Treatment is a dummy (0/1) and aggregate_sd are standardized testscores. I want to check if my treatment and control group are balanced.

        However, I always get this error: type mismatch
        r(109); Return code 109
        type mismatch
        In an expression, you attempted to combine a string and numeric
        subexpression in a logically impossible way. For instance, you
        attempted to subtract a string from a number or you attempted
        to take the substring of a number.


        Now, I checked everything: aggregate sd is numerical, treatment as well. So this error makes no sense to me. Has anyone an idea? Also, I changed float to double, double to float, everything...

        Here are parts of my dataset:
        ---------------------- copy starting from the next line -----------------------
        Code:
        * Example generated by -dataex-. For more info, type help dataex
        clear
        input double aggregate_sd float treatment
        -1.1429336071014404 0
        -.6859450936317444 0
        -.5503984689712524 0
        1.758466124534607 0
        .4320257008075714 0
        end
        I am facing the same problem, how did you solve this?

        Comment


        • #5
          Please provide a data example using dataex, and the exact command you are running, along with the error produced. Please make sure the error occurs even on the data example you provide, so that it is reproducible for the rest of us.

          Comment

          Working...
          X