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 -----------------------
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

Comment