>>> <epidata-list(a)lists.umanitoba.ca> 25-05-2005 16:59:11 >>>
Why is this necessary? I see "LION", upper case and delineated with "
". Thanks, Kelly
Because assigning this :
if recnumber = 2 then animal = "LION"
to a stringvariable of length 10 gets the value:
"LION "
not the value
"LION"
Computers are stupid and the designer makes the choices. My choice is that
"LION " is different than "LION"
Someone would argue that we should always use the trimmed value of string variables, such that "LION " is the same as "LION"
but this would give the user a problem if he/she wanted to compare the full length string.
The strategy of EpiData for as well data entry as the coming release of analysis is that we make as few decisions as possible and let the end user decide.
This is in contrast to other software developers who often impose new and changed strategies and changed ways of doing things on the users (Who is then forced to keep upgrading and learning new ways of doing what they could do with the old principle).
EpiData tries NOT to invent new ways of doing things, but stick to the well founded principles of Epi6 (with appropriate extensions for those who wish to use the new principles of further documentation).
Regards
Jens Lauritsen
Initiator of EpiData
Coordinator EpiData Association
Hi!everyone. I just obtain EPIDATA and I find it very useful. But I cann't analyze the data with Spss. Does Epidata have fountion to transform *.rec to *.sav?
致
礼!
stephen
stephen_ling(a)163.com
2005-05-31
Jens Lauritsen, Overlæge afd.O-Ulykkes Analyse Gruppen,
Odense Universitetshosptal
Tæffes igen 1.juni. Kontakt evt. sekretariatet på (+45) 65412283
Ved hastesager kan der indtales besked på (+45) 21732293
Will be back June 1st.
Hi!
The 3 variables (Day, Month and Year) have to be string (or at least, it works that way!)
Assuming following variable names : Date: DATE, Day: DAY, Month: MONTH, Year: YEAR)
In the After entry block of the date variable, place the lines below:
DAY = day(DATE)
MONTH = month(DATE)
YEAR = year(DATE)
Day, month and year are functions which automatically extract the corresponding values.
Note: besste to create string variables, so days / months < 10 will stay the way thay have been entered, (03 will wtay 03 and not 3).
Best regards
Gilles
-----Message d'origine-----
De : epidata-list(a)lists.umanitoba.ca [mailto:epidata-list@lists.umanitoba.ca]
Envoyé : vendredi 20 mai 2005 05:05
À : epidata-list(a)lists.umanitoba.ca
Objet : [EpiData-list] Date variable
Hi all!
I am trying to create three variables: Day, Month and Year that would read automatically their values from Date variable (<dd/mm/yyyy>) but unfortunately can't get well how to do it, Any tips please?
Thank You in advance!
Best regards!
/Ziad
--
Medecins Sans Frontieres - Holland
NorthSudan project
Upper Nile State
Why is this necessary? I see "LION", upper case and delineated with "
".
Thanks, Kelly
-----Original Message-----
From: epidata-list(a)lists.umanitoba.ca
[mailto:epidata-list@lists.umanitoba.ca]
Sent: Sunday, May 01, 2005 2:16 PM
To: epidata-list(a)lists.umanitoba.ca
Subject: [EpiData-list] Re: selecting on string variables
> 1. How to select "string variables" in Epidata Analysis ?
> select outcome="death"
An example should clarify:
Try this:
generate 3 // make 3 artificial records
gen integer id = recnumber // create id variable
define animal _________ // make a string variable
* add value to the variable:
if recnumber = 3 then animal = "monkey"
if recnumber = 1 then animal = lower("LION")
if recnumber = 2 then animal = "LION"
. list
ID ANIMAL
1 lion
2 LION
3 MONKEY
* so we see that we have three values for the variable animal.
* and we have two variables:
. var
Name Type Length Decimals
ID Integer 12 0
ANIMAL String 9 0 %s9
* now we try various selects:
select if animal = "LION"
count
No records available
select // to
select if upper(animal) = "LION"
count
No records available
select
select if upper(trim(animal)) = "LION"
count
Count : 2
The essense is therefore that to do a select on a string variable, you
have to use as well sometimes the function upper() and the function
trim() to get a proper selection.
regards
Jens Lauritsen
Initiator of EpiData
Coordinator EpiData Association
Dear Ziad:
I am not sure I understood you correctly, but if yes, this is what you
would do:
QES file:
testdate <dd/mm/yyyy>
dd ##
mm ##
yyyy ####
sex <A>
and CHK file:
testdate
MUSTENTER
after entry
dd=day(testdate)
mm=month(testdate)
yyyy=year(testdate)
end
end
DD
NOENTER
END
MM
noenter
END
YYYY
NOENTER
END
SEX
MUSTENTER
END
Regards,
Hans
--
Hans L Rieder, MD, MPH
Jetzikofenstr. 12
3038 Kirchlindach
Switzerland
Tel: +41 31 829 4577
Mob: +41 79 429 9945
Web: http://www.tbrieder.org
Hi all!
I am trying to create three variables: Day, Month and Year that would
read automatically their values from Date variable (<dd/mm/yyyy>) but
unfortunately can't get well how to do it,
Any tips please?
Thank You in advance!
Best regards!
/Ziad
--
Medecins Sans Frontieres - Holland
NorthSudan project
Upper Nile State
Hi,
We came across your organization while browsing the web. Kindly allow me to introduce ourselves to you.
We are a professional outsourcing partner for all data conversion and related activities (http://www.DataConversion.co.in). Our data conversion division has been around since 1999, and was created
with the intent of offering world-class data conversion services to international clientele.
We undertake digital conversion of large volumes of content: newspapers, books, journals and a variety of forms, surveys, indexes and other documents from print, electronic images & microfilm. Our
low cost digital archiving & metadata conversion services allow for libraries, repositories of special collections and other organizations with limited budgets to digitize their archives for web
publication and distribution.
Our range of services include, but are not limited to:
Data Entry / Conversion / Capture
Forms Processing
Scanning / OCR
Digital Archiving
XML / SGML / HTML
Formatting, Pre-Press and Typesetting (FrameMaker, QuarkXpress, InDesign)
Data collection / Internet Research
Proofreading and Copy-Editing
Medical / Audio Transcription
CAD Conversion
Our staff is fully dedicated and capable to provide complete and accurate data conversion services to our worldwide customers at the lowest possible cost, and delivered at the required time. With a
robust data security policy & business continuity plan in place, we fully safeguard customer data at all times.
We understand the basic international business processes and ensure that all projects undertaken by us are completed within the stipulated time period with complete confidentiality, accuracy, and
quality. We are one of the leading Indian organizations in our field, and serve many international organizations. For accomplishing jobs with us, a team of highly trained and dedicated professionals
work at our state-of-the-art facilities located in New Delhi, India.
Many companies are now outsourcing their work to India. Not only do they achieve substantial cost savings, the availability of a large number of professionally trained personnel also ensures high
quality of work. We can serve you efficiently and cost effectively, and deliver as per your customized needs. With every project plan we design and implement, we work to earn our clients' trust. You
pay for the services provided or hours worked - only when you need them!
If you are interested in cutting your current costs to at least half, increasing your profit margins without compromising on the quality and turn-around time, then please do get back to us. We will
be glad to send you a most competitive business proposal.
I look forward to hearing back from you.
Sincerely,
Dhiraj Aggarwal
CEO
Mobile: +(91) 98100 50809
E-mail: info(a)DataConversion.co.in
URL: http://www.DataConversion.co.in
This email has been sent expecting the information to be of use and benefit to you. In case you do not wish to receive further emails from us, please send us an email with `REMOVE + your email
address' in the subject line and we will remove your email address from our database. We apologize for the inconvenience caused to you.
Dear Colleagues,
As I was using EpiData, I was impressed because it is simple to understand
and even train someone on how to use it. However, I was challenged on how to
revise a questionnanire and effect the revision into the record file. If
you know how to do it, just direct me.
I will be happy for your quick response.
Regards,
___________________________________________
Lwanga B. Charles
Department of Population Studies,
Institute of Statistics and Applied Econ.,
Makerere University, Box 7062 Kampala,
Tel: 256-77-575745
Alternative email: chlwanga(a)hotmail.com
> 1. How to select "string variables" in Epidata Analysis ?
> select outcome="death"
An example should clarify:
Try this:
generate 3 // make 3 artificial records
gen integer id = recnumber // create id variable
define animal _________ // make a string variable
* add value to the variable:
if recnumber = 3 then animal = "monkey"
if recnumber = 1 then animal = lower("LION")
if recnumber = 2 then animal = "LION"
. list
ID ANIMAL
1 lion
2 LION
3 MONKEY
* so we see that we have three values for the variable animal.
* and we have two variables:
. var
Name Type Length Decimals
ID Integer 12 0
ANIMAL String 9 0 %s9
* now we try various selects:
select if animal = "LION"
count
No records available
select // to
select if upper(animal) = "LION"
count
No records available
select
select if upper(trim(animal)) = "LION"
count
Count : 2
The essense is therefore that to do a select on a string variable, you
have to use as well sometimes the function upper() and the function
trim() to get a proper selection.
regards
Jens Lauritsen
Initiator of EpiData
Coordinator EpiData Association