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

st: Variable format

From   Cinzia Rienzo <>
Subject   st: Variable format
Date   Thu, 5 Jun 2008 17:15:20 +0100 (BST)

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.



*   For searches and help try:

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