Additionally, when I run -
. destring v1, generate(vv1) float
I was informed that
v1 contains non-numeric characters; no generate
What's wrong?
On 10/13/05, Jia Xiangping <[email protected]> wrote:
> Dear all,
>
> When data were input from questionnaires, epidata (version3.1) was
> used. One question, as "Did you applied credit last year", was set as
> "Boolean (yes/no)" in Epidata. But when data was exported to Stata
> 8.2, the result is very frustrating:
>
> -des v1, detail-
>
> storage display value
> variable name type format label variable label
> -------------------------------------------------------------------------------
> v1 str1 %1s 1) did you
> apply for a credit
> in 2004
>
> -sum v1, detail-
>
> 1) did you apply for a credit in 2004
> -------------------------------------------------------------
> no observations
>
> -list v1-
>
> +----+
> | v1 |
> |----|
> 1. | N |
> 2. | N |
> 3. | N |
> 4. | N |
> 5. | N |
> |----|
> 6. | N |
> 7. | N |
> 8. | N |
> 9. | N |
> 10. | N |
> |----|
> 11. | N |
> 12. | N |
> 13. | N |
> 14. | N |
> 15. | N
>
> What I need is just a binary variable. Must I have to transform it to
> numerical variable firstly and then label variables and values again
> manually? Are there any other ways I can apply?
>
> If I could foresee this problem, I would have defined variable v1 as
> just numerical type in Epidata instead of "Boolean".
>
>
> --
> Xiangping JIA
>
> *
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
--
Xiangping JIA
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/