Académique Documents
Professionnel Documents
Culture Documents
QUALITATIVE VARIABLES
How to quantify qualitative variables to quantitative variables ?
Specifically:
What if the variables are not quantitative variables, like:
I. Male-female; Urban-rural; Yes-No; foreign-domestic
II. Level of education: SD, SLTP, SLTA, D3, S1, S2, S3
Choice if investment: stock, certificate of BI, gold, etc.
Other Usages:
How to model Unstable Regression?
- Jumping Regression
- Shifting Regression
Technically speaking, do we have problems with our model if:
- Independent variable (s) is (are) a dummy (ies)
- Dependent variables is a dummy
Illustration:
We would like to analyze whether there are differences between
graduate and undergraduate students in weekly entertainment
spending.
Model: Y = α + β PS + u
From the model, an average spending:
• Graduate student: E (Y ⎟ PS = 1) = α + β
• Undergraduate student: E (Y ⎟ PS = 0) = α
For example, by using data from a survey, the estimated model is
the following:
Y = 9,4 + 16 PS
t (53,22) (6,245)
R2 = 96,54%
Interpretation:
average spending for graduate students: 9,4 + 16 = 25,4,
average spending for under graduate students: 9,4
Dosen perempuan
α2
α1
X
Pengalaman mengajar
Adakah diskriminasi?
How about if we define differently
S = 1; female professor
= 0; male professor
Y
Gaji tahunan
Dosen perempuan
Dosen laki-laki
α2
α1
X Pengalaman mengajar
D2 = 1; male professor
0; female professor
D3 = 1; female professor
0; male professor
Nama Sex D2 D3
Ana Hen P 0 1
Annisa P 0 1
Budi L 1 0
Bambang L 1 0
Badrun L 1 0
Betty P 0 1
Aturan main:
Jika jumlah kategori sebanyak m, maka kita hanya memerlukan m-1
variabel dummy.
Qualitative Variables
with more than two categories
Levels of Education: SD, SLTP, SLTA, D3, S1, S2, S3
Choices of Investments: Stock, Saving Deposits, Property, Gold
Y S1
SMU
α1
Pendapatan (X)
Model dg Beberapa Variabel Kualitatif
Gaji = f ( pengalaman, sex, di fakultas apa)
Y = α1 + α2 D2 + α3 D3 + β X + u
Y = gaji/tahun
X = lamanya mengajar/pengalaman (tahun)
D2 = 1 ; dosen laki-laki
0 ; dosen perempuan
D3 = 1 ; Dosen FE
0 ; lainnya
Rata-rata Gaji:
• Dosen P diluar FE = 7,43 + 1,226 = Rp.8,656 juta.
• Dosen L diluar FE=7,43+0,207+1,226 = Rp.8,863 juta.
• Dosen P di FE=7,43 +0,164 + 1,226 = Rp.8,820 juta.
• Dosen L di FE=7,43+0,207+0,164+1,226 =Rp.9,027 juta.
Pemodelan upah : Moonlighting
Moonlighter adalah orang yang mempunyai satu pekerjaan
utama dan satu atau lebih pekerjaan sambilan.
Apa artinya bila uji-F, dan uji-t, ternyata semua variabel signifikan
pada tingkat signifikansi 5%.
The above model indicates that saving and income do not behave
differently across sampel and time.
Case 1: α1 = β1 and α2 = β2
Case 2: α1 ≠ β1 and α2 = β2
Case 3: α1 = β1 and α2 ≠ β2
Case 4: α1 ≠ β1 and α2 ≠ β2
Yi = α1 + α2 Di + β1 Xi + β2 Di Xi + ui
Y = komisi penjualan
X = volume penjualan yang dicapai oleh salesman
X* = target penjualan
D = 1 ; bila X > X*
0 ; bila X ≤ X*
Rata-rata komisi penjualan bila tidak melebihi target:
Komisi = α1 + β1 X ; X < X*
R a ta -ra ta k o m is i p e n ju a la n b ila m e la m p a u i ta rg e t :
K o m is i = α 1 + (β 1 + β 2 ) X - β 2 X * ; X * ≤ X
S e h in g g a m o d e ln ya d a p a t d ig a b u n g m e n ja d i :
Y = α 1 + β 1 X + β 2 (X – X *) D
S e c a ra g e o m e tris :
K o m is i
α1
X* P e n ju a la n
The end of the
lesson
by Nachrowi D. Nachrowi