IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
-
Upload
ifad-vietnam -
Category
Documents
-
view
216 -
download
0
Transcript of IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
1/47
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
2/47
Create an application
Open CSPro 4.0 by click on the CSPro 4.0 icon or choose
ProgramCSPro 4.0
Choose Create a new application OK
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
3/47
Create an application (cont.) Choose application type: Data Entry Application OK
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
4/47
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
5/47
Create an application (Cont.) A box noting that: this application doesnt exist, and it requires
to create a new one.
Choose YES to create the app.
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
6/47
Create an application (Cont.)An application includes 2 main components:
1. Data Dictionary
File extension: .dfc
Function: describe the structure and oranisation of data Data-related concepts: Records, Items, Values label
2. Data Entry Form
Allow to create, use data dictionary, verify data entry form
Write a logic programme to examine the constraint btw variables &skips.
Used by data entry officials to input data.
Utilize tools to create forms, amend labels, add boxes, text and
colors to format the form as similar as the questionnaire as possible.
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
7/47
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
8/47
Data Dictionary By default, there is the ID item named Test Identification and
this field length is 1. Hence, modify the name by right-click and
choose Modify Item (see below).
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
9/47
Data Dictionary
You can rename the Item Label.
By default, Test Identification is changed to Questionnaire Code.
(if using Vietnamese, choose .vntime font).
Press Enter (or Tab) 3 times to move to the Length column (oruse mouse). Change the default value (1) into (4).
Press Enger (or Tab) 3 times to end changes.
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
10/47
Record
Record verification (by default, CSPro creates test record)
A data dictionary contains records (each record is equivalent
to a questionnaire)
These records share the same record questionnaire code. Each record may appear once or more in the questionnaire
Each record contains items (equivalent to one question in the
questionnaire)
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
11/47
Record (cont.)
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
12/47
Record (cont.) To modify a record: Right click at the record Modify Record
(Ctrl + M). Some characteristics of the record:
Record label: describe the
name of the record Record name: is unique,
max length = 32 characters Required: 2 values: Yes/No Max: define the number of
repetition of a record in the
questionnaire
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
13/47
Items (Variables) Add items: Right-click at the Record choose Add
Item.
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
14/47
Items (Variables) Some characteristics of an item Item Label: max length = 255 characters
Item Name:
is unique and mandatory Includes only capital letters (A-Z) or numbers (0-9), character _ is
possible.
Must start by a character
Max length = 32 characters
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
15/47
Items (Variables) Start: define the start of an item, CSPro automatically generates
the item by combining with length (len) of the previous item to
define the following item.
Len: The length of decimal value to be inputted by the keyboard (including
space, decimal, and negative)
Maximum length of an item is 15 characters for numeric type and 255
for alpha type.
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
16/47
Items (Variables) Data type
Numeric: contains numeric values or space, and even
negative
Alpha: contains all characters in the keyboard Dec: how many numeric characters after decimal
Dec Char: receive 2 values
Yes: receive decimal values No: receive integral values
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
17/47
Items (Variables) Zero Fill: automatically fill in with 0 or space
If Zero-fill is Yes, recorded value will be 092
If Zero-fill is No, recorded value will be 92
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
18/47
Items (Variables) Similar to other Items (refer to the questionnaire)
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
19/47
Value of Items
When you finish adding all items. Next, add values for item.
Values are options for answer in the questionnaire.
Ex. Q5: Gender: 1 Male 2 Female.
In this case, values of item are 1 and 2. Male and Female arelabels of item values.
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
20/47
Value of Items (cont.)
Right-click at the Item choose Add Value Set
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
21/47
Value of Items (cont.) Characteristics of Value Set: Value label: describe values of the item. This coincides with
the item label by default
Value Set Name: the only one name automatically created,combining with item name presented (see picture)
Value Label: describe value that the item receives.
From: receive a single value (numeric) or a start value of a
range. To: receive an end value of a range
Special: missing, not applicable (NA), default
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
22/47
Value of Items (cont.) Press Enter (or Tab) twice to input label for item value (toallow the software to recognize what 1 means when inputting
1, what the label describes for value 1)
PressEsc
The value of an item depends on the type of that item.
The example hereafter shows discrete variables (values in order)
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
23/47
Value of Items (cont.)
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
24/47
Value of Items (cont.) Missing values and null values are presented coincidentally
with Enter. These values are used in case respondents did not
answer the question.
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
25/47
Value of Items (cont.)
For continuous variable (respondents fill in the
questionnaire,such as weight, height, income), one
of the values should be not applicable (NA), so that
when respondents donot answer the question, dataentry officials can skip bying pressing Enter.
Why there exists the value Missing?
The reason is that if inputting value missing (e.g.=9), it is easily to mislead by identifying 9 = VND 9
mil/month. These values donot have labels to describe
(Value Label left blank)
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
26/47
Value of Items (cont.)
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
27/47
Value of Items (cont.) For a continuous variable with clearly defined range, in order
to limit the data entry, input outside of the value range of that
variable.
Ex. The variable Year of birth has values ranging from 1920
to 2005 for investors in the stock exchange market in Vietnam.
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
28/47
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
29/47
Data Entry Form
In this part:
Data Entry Form interface
Generating forms automaticallyGenerating forms manually
Writing the form logic
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
30/47
Data Entry Form (cont.) To move from Dictionary to Form, see bottom left and choose
Forms. (see below)
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
31/47
Data Entry Form (cont.)
Double click on Test questionnaire to open form (on the right
box)
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
32/47
Generating Form
Before creating a form
automatically, from the Menu bar,
choose OptionsData Entry
In the Require Enter Key section,
choose All fields
This choice allows the data entry
official to press Enter upon
finishing inputting a fact to move to
the next input space.
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
33/47
Generating form automatically Each Record in Dictionary will automatically create a form.
From Menu bar, choose Edit Generate Forms
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
34/47
Generating form automatically
There comes a form as in the image below
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
35/47
Vietnamese display
To display Vietnamese, first, close the program. Use MS Word
to open the form (the file with an icon of 3 yellow squares)
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
36/47
Vietnamese display
Change the two default fonts into .vntime
Save and close MS Word window.
Run the application by double-click on
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
37/47
Write the form logic This action is to create skips in the questionnaire, and
write conditions to identify errors
Choose the box to change, right-click View Logic.
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
38/47
Write the form logic Before writing form logic, variable, variable $,
operators, and commands in CSPro should be
introduced:
Variable: variables used are name of items. Variables $ arethose used to write logic for the existing variables.
Operators: =, >=,
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
39/47
Write the form logic (cont.)ifcondition thenstatements;
[elseifcondition then
statements;]
[else
statements;]
endif;
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
40/47
Write the form logic (cont.) After writing, use compile to detect errors:
choose File Compile
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
41/47
Export After finishing data entry, database can be exported to various
database file types: excel, SPSS, STATA
for analysis
From Menu bar,choose Tools Export
A window pops-up
(see image), choose the
related dictionary,then Open.
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
42/47
Export (cont.) In Export Format section,
choose file format to export.
Ex. choose SPSS to export to
an SPSS database
Choose the dictionary in theleft-hand box by ticking the
check-boxes. Its up to which
part of the database to export,
choose the appropriate boxes(ID is compulsorily)
Choose FileRun
(or choose icon in the
menu bar)
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
43/47
Export (cont.)
After choosing Run, a windowpops-up.
Choose the database created
(ex. file test2, this file stands
1st
in a list of same names.This file has no extension).
Choose Open. A box with two
export files (default), one is
Out Data file name, the other
is SPSS Description file name.
ClickOk.
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
44/47
Compare Data
There should be 2 data entry officials inputting a same set of
questionnaire. This is to compare and reduce subjective errors.
CSPro allows to do
this action by
choosingTools
Compare Data
A window pops-up
(see image)
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
45/47
Compare Data (cont.) Choose all necessary variables to compare by ticking the
check-boxes
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
46/47
Compare Data (cont.) Chooing Run to open the windowRun Compare Data.
Input File is the database file (test2) by the 1st offcial
Reference File is the database file entered by the 2nd official.
Click OK afterchoosing the 2 files.
-
8/3/2019 IFAD Vietnam RIMS Training Workshop 2011 (6 of 7)
47/47
Concatenate database
Another basic utility of CSPro is database
concatenation. (Note: backup files before concatenating)
From Menu bar, choose Tools
Concatenate Data. In the window CSConcat, Output File, click Browse and name
the concatenating database.
Choose Add and add all
databases needed to beconcatenated.
ClickRun to concatenate files.