![](https://secure.gravatar.com/avatar/f174b9816ccce31bf5cdb49501b15358.jpg?s=120&d=mm&r=g)
Dear Ali,
It seems to be a simple task. First, as far as I know the BMI is calculated as weight/(heigh*heigh). However this values should be in Kg and m. If you have the data in pounds and feet, then youl should transform them before. To make it easier, create a variable in the qes file with this information.
qes file
v1 heigh in feet ##.# v2 heigh in m #.## v3 weight in pound ###.## v4 weight in Kg ###.# v5 bmi ##.##
chk file
v1 after entry let v2 = round(v1*0,4536) end end
v2 noenter end
v3 after entry let v4=round(v3/3,28) end end
v4 noenter end
v5 before entry let v5=v4/(v2*v2) goto v6 end end
I hope this works fine for you because didnt test it! ;)
Succes, Pedro Emmanuel Brasil
2007/4/12, epidata-list-request@lists.umanitoba.ca < epidata-list-request@lists.umanitoba.ca>:
Send EpiData-list mailing list submissions to epidata-list@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@lists.umanitoba.ca
You can reach the person managing the list at epidata-list-owner@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:
- BMI Calculation (epidata-list@lists.umanitoba.ca)
Message: 1 Date: Thu, 12 Apr 2007 08:12:37 -0400 From: epidata-list@lists.umanitoba.ca Subject: [EpiData-list] BMI Calculation To: epidata-list@lists.umanitoba.ca Message-ID: 9aeb5bc30704120512q55329040pc02a85328844f8d1@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Thanks. I just recently started using Epidata, and I need some help on creating a Check string for automatically calculating BMI using Weight and Height (in pounds and feet/inches). Thanks, again.
-- Ali B. Mansaray MANSA Consulting Services 6530 Davidson Road Columbia, SC 29209 803-381-6864 ali.mansaray@gmail.com
EpiData-list@lists.umanitoba.ca http://lists.umanitoba.ca/mailman/listinfo/epidata-list
End of EpiData-list Digest, Vol 42, Issue 5