02 Variable and Data
02 Variable and Data
Data
Adiyo Roebianto
Variabel
Continuous
variable Pengumpulan datanya dengan cara mengukur
Contohnya:
Tinggi badan= 173,80
Suhu= 16,5˚ C intelegensi= 127
cm
Categorical variable
• Bervariasi berdasarkan jenisnya, sehingga menghasilkan bilangan integer (bulat positif)
• Contoh:
• Jenis kelamin= 12 pria dan 30 wanita
• Frekuensi berkunjung ke RS= tidak pernah; 1 – 3 kali setahun; lebih dari 3 kali setahun
The relationship of the values that are assigned to the attributes for
a variable
What is level of measurement?
• The relationship of the values that are assigned to the attributes for a variable
Relationship
What is level of measurement?
• The relationship of the values that are assigned to the attributes for a variable
Values 1 2 3
Relationship
What is level of measurement?
• The relationship of the values that are assigned to the attributes for a variable
Values 1 2 3
Relationship
What is level of measurement?
• The relationship of the values that are assigned to the attributes for a variable
Values 1 2 3
Relationship
Helps you decide what
Why Is Level statistical analysis is appropriate
on the values that were assigned
of
Measurement
Helps you decide how to
Important? interpret the data from that
variable
Nominal
• The value does not imply any ordering of the cases, for
example, jersey numbers in football.
• Distances between attributes do not have any meaning,for example, code Educational
Attainment as 0=less than H.S.; 1=some H.S.; 2=H.S. degree; 3=some college;
4=college degree; 5=post college
• Strongly disagree (1); disagree (2); agree (3); strongly agree (4)
Interval Data
Zero point has meaningless
Ratio Data
• Has an absolute zero that is meaningful
• Can construct a meaningful ratio (fraction), for example, number of clients in past six
months
• It is meaningful to say that “...we had twice as many clients in this period as we did in
the previous six months.
The Hierarchy of Levels
Nominal
The Hierarchy of Levels
Ordinal
Interval
Ordinal Attributes can be ordered
Ratio
Interval Distance is meaningful