I have a problem in trying to convert an alpha character to real. I have
converted the data from spss to stata using stat transfer, but one of
the numeric variables has na positioned for all of the "na" measures. I
can see the actual values since when I run sum by a grouping command
they appear. I'm a bit rusty in stata now, and I do recall that I could
use the function real to convert the alpha characteris to their actual
numeric values. I cannot seem to get the real command to work.
Perhaps if there is someone out there who might recall this procedure, I
would be appreciative.
Here is what happens:
. tab hours
enter the |
number of |
hours |
written on |
the |
questionnai |
re in the |
space here. |
enter | Freq. Percent Cum.
------------+-----------------------------------
na | 1 25.00 25.00
na | 1 25.00 50.00
na | 1 25.00 75.00
na | 1 25.00 100.00
------------+-----------------------------------
Total | 4 100.00
when I try to convert these to real numbers it does this:
. real("hours")
unrecognized command: real
r(199);
I have been unable to find the real command in the handbooks, so I
thought I might ask more skilled persons here.