Course Hero Logo

11 in the expression field create the assignment

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 374 - 378 out of 645 pages.

11.In the =Expression field, create theassignment syntaxbased on the needed data.12.ClickOK. The code appears in the Program Editor.Try ItIn the following example, the zip code field is a number. To use the zip code in a map, anew zip code variable must be defined and assigned text values.1.From the Classic Analysis Command Tree, use the READ command to open theSample.PRJ project.2.From the form section, clickSurveillance. ClickOK.
Epi Info™ 7 User Guide –Chapter 9 - Classic Analysis9-303.ClickVariables > Display. ClickOK. The variables information appears.4.ClickVariables > Define. The DEFINE dialog box opens.5.In the Variable Name field, create a new variable namedZip2.6.ClickOK.7.From the Classic Analysis Command Tree, clickVariables > Assign. The ASSIGNdialog box opens.8.From the Assign Variable drop-down list, selectZip2.9.In the =Expression field, type the syntaxFORMAT(ZipCode,"00000").In this example, the FORMAT function is used to convert the format of the valuesof the variable ZipCode into the text format. Text values are always surrounded bydouble quotes and are assigned to the new Zip2 variable.10.ClickOK. The code appears in the Program Editor.11.Use the DISPLAY command to view variable information.Figure 7.106:Assign Variables in Program Editor
Epi Info™ 7 User Guide –Chapter 9 - Classic Analysis9-31How to Use RecodeThe Recode command allows grouping of data for age and other variables, or changing codefrom one system to another.To insert a line in the table, select therowand pressCtrl-Insert.To delete a line in the table, select therowand pressCtrl-Delete.Delete anyblank rowsprior to selectingOKorSave Only.Figure 7.107:Recode Dialog BoxTheFromdrop down identifies the variable whose values are to be recoded.TheTodrop down identifies the variable slated to receive the recoded values.Value (blank = other)identifies the bottom of a range of values, a single value, orall remaining values slated to be recoded. Enclose text in quotation marks. The wordLOVALUE may be used to indicate the smallest value in the database. HIVALUEmay be used to indicate the largest. To recode a single value instead of a range, useonly this column. To recode all unspecified values, leave this column and the Tocolumn blank.To Value (if any)identifies the top of a range of values that will be recoded.Recoded Valueidentifies the value to be assigned to the destination variable forthe specified values of the source variable. Enclose text in quotation marks.
Epi Info™ 7 User Guide –Chapter 9 - Classic Analysis9-32Fill Rangesallows you to redefine recoded ranges of equal distribution.OKaccepts the current settings and data, and closes the form or window.Save Onlysaves the created code to the Program Editor, but does not runthe code.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 645 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Winter
Professor
N/A
Tags
Widgets, The Next Time, Algebraic number field

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture