Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: problem with a macro

From   "Svend Juul" <SJ@SOCI.AU.DK>
To   <>
Subject   Re: st: problem with a macro
Date   Tue, 20 Dec 2005 14:07:52 +0100

I have a problem with the syntaxe global
When I type
global demographe "one NE SOUTH MIDWEST sex_c age_c kids05
kids610 kids1115 voiture maison" ;
global D wordcount($demographe) ;
I expect that stata returns the number 11
but I get the folowing message when I type
dis $D
invalid name


It is:
global D wordcount("$demographe")


Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000  Aarhus C, Denmark
Phone: +45 8942 6090
Home:  +45 8693 7796

*   For searches and help try:

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