[EpiData-list] Value Label

epidata-list at lists.umanitoba.ca epidata-list at lists.umanitoba.ca
Mon Nov 27 02:45:00 CST 2006


Hello to All,
I would like to give names to dichotomisées variables. I make him(it) well under SPSS. It is a question " Been worth Label ".
I do not know how to make.
By example: I dichotomise the variable Q05 (Rate of Haemoglobin) in two cathégories; modQ05 (Class of Hb) 1=TxHb < 12 mg / dl, 2=TxHb > 12 mg / dl.
Afterward, I would like to call 1 = "Anaemia 2" = "Hb Normale".
So that when I make Freq modQ05, I obtain the distribution by looking directly
Anaemia
Hb Normale
Thank you
 
___________________________________________
Dr Jean-Paul DIBY-KONAN
Médecin Santé Publique
MCM Santé de la Reproduction
Institut Médecine Tropicale
Kapucinessenstraat 8 B-2000 Anvers
Belgique



----- Message d'origine ----
De : "epidata-list-request at lists.umanitoba.ca" <epidata-list-request at lists.umanitoba.ca>
À : epidata-list at lists.umanitoba.ca
Envoyé le : Samedi, 18 Novembre 2006, 19h00mn 47s
Objet : EpiData-list Digest, Vol 37, Issue 6


Send EpiData-list mailing list submissions to
    epidata-list at lists.umanitoba.ca

To subscribe or unsubscribe via the World Wide Web, visit
    http://lists.umanitoba.ca/mailman/listinfo/epidata-list
or, via email, send a message with subject or body 'help' to
    epidata-list-request at lists.umanitoba.ca

You can reach the person managing the list at
    epidata-list-owner at lists.umanitoba.ca

When replying, please edit your Subject line so it is more specific
than "Re: Contents of EpiData-list digest..."


EpiData-list mailing list
___________________________________

Today's Topics:

   1. Create one variable from two or more variables
      (epidata-list at lists.umanitoba.ca)
   2. Re: Create one variable from two or more variables
      (epidata-list at lists.umanitoba.ca)


----------------------------------------------------------------------

Message: 1
Date: Fri, 17 Nov 2006 12:59:22 -0800 (PST)
From: epidata-list at lists.umanitoba.ca
Subject: [EpiData-list] Create one variable from two or more variables
To: epidata-list at lists.umanitoba.ca
Message-ID: <160765.20031.qm at web60116.mail.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1

Is there a way to automatically create a variable from
2-3 entered variables?
For example: I have
var1 ######
var2 ##
var3 #

I would like epidata entry to automatically populate a
new variable for each case, where the value would be
var1, var2, var3 appended with each other:

var4  var1var2var3   

I tried creating a data check command:

~~~~~~~~~~~~~~~~~~~~~~
var4
  MUSTENTER
  AFTER ENTRY
    var4="var1" + string(var1) + "var2" + string(var2)
      + "var3" + string(var3)
  END
END
~~~~~~~~~~~~~~~~~~~~~~~~~
But that did NOT work.
Thanks so much
J.H.






____________________________________________________________________________________
Sponsored Link

Mortgage rates near 39yr lows. 
$510k for $1,698/mo. Calculate new payment! 
www.LowerMyBills.com/lre


------------------------------

Message: 2
Date: Fri, 17 Nov 2006 21:51:05 +0000
From: epidata-list at lists.umanitoba.ca
Subject: Re: [EpiData-list] Create one variable from two or more
    variables
To: epidata-list at lists.umanitoba.ca
Message-ID: <455E2EC9.2050400 at ird.bf>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello,

It seems that several mis-specifications are made in your code:

- first, why don't you declare initially the variables var1 to var3 as 
string variables? This would help to concatenate them.

- second, if the variables v1-v3 have to be numericals, the creation of 
the var4 should be something like :
var4 = string(var1)+string(var2)+string(var3)

- third, to generate automatically v4 (defined as a string variable) I 
would have written the following code:

var4
  BEFORE ENTRY
   var4 = string(var1)+string(var2)+string(var3)
   GOTO var5 (if var5 is the next variable in the QES file)
  END
END

Please note that MUSTENTER may be not appropriate, unless you are sure 
that there will be no missing variables among v1-v3

Hope this helps

Regards

-------------------------------------------------------
Yves MARTIN-PREVEL, Epidemiologist, MD, MSc, PhD
Nutrition Unit (WHO Collaborating Center for Nutrition)
Institut de Recherche pour le Développement (IRD)
01 BP 182 - OUAGADOUGOU 01 - BURKINA FASO
Tel: +226 50 30 67 37; Fax: +226 50 31 03 85
http://www.ird.bf/

epidata-list at lists.umanitoba.ca a écrit :
> Is there a way to automatically create a variable from
> 2-3 entered variables?
> For example: I have
> var1 ######
> var2 ##
> var3 #
> 
> I would like epidata entry to automatically populate a
> new variable for each case, where the value would be
> var1, var2, var3 appended with each other:
> 
> var4  var1var2var3   
> 
> I tried creating a data check command:
> 
> ~~~~~~~~~~~~~~~~~~~~~~
> var4
>   MUSTENTER
>   AFTER ENTRY
>     var4="var1" + string(var1) + "var2" + string(var2)
>       + "var3" + string(var3)
>   END
> END
> ~~~~~~~~~~~~~~~~~~~~~~~~~
> But that did NOT work.
> Thanks so much
> J.H.
> 
> 
> 
> 
> 
>  
> ____________________________________________________________________________________
> Sponsored Link
> 
> Mortgage rates near 39yr lows. 
> $510k for $1,698/mo. Calculate new payment! 
> www.LowerMyBills.com/lre
> _______________________________________________
> EpiData-list mailing list
> EpiData-list at lists.umanitoba.ca
> http://lists.umanitoba.ca/mailman/listinfo/epidata-list
> 



------------------------------

________________________________________
EpiData-list at lists.umanitoba.ca
http://lists.umanitoba.ca/mailman/listinfo/epidata-list


End of EpiData-list Digest, Vol 37, Issue 6
*******************************************


	

	
		
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com


More information about the EpiData-list mailing list