Hi,
I am relatively new to using STATA so I apologize if this is something obvious.
I have a variable that has values like "ypN0" "cM0" "4A" - so I coded this as a string variable.
When I run the script, the columns for these variables come up entirely blank.
Just to make sure there was actual data in those columns, I switched out "str" for "long" - and got a very long list of errors saying, for example, "cM0 cannot be read as a number".
So I know the values are there, they're just not showing up.
What other data type could it be? It's not numeric, and string isn't working out. I did try "str5" as well since the max amount of characters for this data is 5, but still blank.
Thanks!
I am relatively new to using STATA so I apologize if this is something obvious.
I have a variable that has values like "ypN0" "cM0" "4A" - so I coded this as a string variable.
When I run the script, the columns for these variables come up entirely blank.
Just to make sure there was actual data in those columns, I switched out "str" for "long" - and got a very long list of errors saying, for example, "cM0 cannot be read as a number".
So I know the values are there, they're just not showing up.
What other data type could it be? It's not numeric, and string isn't working out. I did try "str5" as well since the max amount of characters for this data is 5, but still blank.
Thanks!
Comment