Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE:


From   Cinzia Rienzo <[email protected]>
To   [email protected]
Subject   Re: st: RE:
Date   Thu, 5 Jun 2008 17:18:54 +0100 (BST)

Thanks a lot.

Cinzia


Martin Weiss wrote:


>Seems that "nato" is a string (which cannot be equal to 42). If Stata 
treats it as string, but it is really only numbers, consider -destring-
>
>Martin Weiss
>_________________________________________________________________
>
>Diplom-Kaufmann Martin Weiss
>Mohlstrasse 36
>Room 415
>72074 Tuebingen
>Germany
>
>Fon: 0049-7071-2978184
>
>Home: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1130
>
>Publications: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1131
>
>SSRN: http://papers.ssrn.com/sol3/cf_dev/AbsByAuth.cfm?per_id=669945
>
>
>-----Original Message-----
>From: [email protected] 
[mailto:[email protected]] On Behalf Of Cinzia Rienzo
>Sent: Thursday, June 05, 2008 6:13 PM
>To: [email protected]
>Subject: 
>
>Dear Statlisters,
>
>i wonder if you could help to solve this:
>
>I am generating a new variable but STATA does not allow me to do that i 
>think becasue of the format of the variable "nato":
>
>g continents= nato
>replace continents=1 if nato==42 
>type mismatch
>
>
>format  nato if year==1994
>
>  variable name  display format
>  -----------------------------
>  nato          %9s
>  -----------------------------
>
>while i suspect the format should be  %8g? Correct? 
>
>I would appreciate any suggestions/help.
>
>Best
>
>Cinzia
>*
>*   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/
>
>
>*
>*   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/
>
*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index