• Tidak ada hasil yang ditemukan

Loglinear Models 2012 Rev

N/A
N/A
Protected

Academic year: 2017

Membagikan "Loglinear Models 2012 Rev"

Copied!
20
0
0

Teks penuh

(1)
(2)

• Consider an IxJ contingency table that

cross-classifies a multinomial sample of n subjects on two categorical responses.

• The cell probabilities are (i j) and the expected

(3)

Independence Model

Under statistical independence

For multinomial sampling

Denote the row variable by X and the

column variable by Y

(4)

Thus

for a row effect and a column effect

This is the loglinear model of

independence.

As usual, identifiability requires constraints such as

(5)

(6)

The tests using X2 and G2 are also

goodness-of-fit tests of this loglinear model.

Loglinear models for contingency tables are

GLMs that treat the N cell counts as

independent observations of a Poisson random component.

Loglinear GLMs identify the data as the N cell

counts rather than the individual classifications of the n subjects.

The expected cell counts link to the explanatory

(7)

The model does not distinguish

between response and explanatory variables.

It treats both jointly as responses,

modeling ij for combinations of their

levels.

To interpret parameters, however, it

(8)

We illustrate with the independence

model for Ix2 tables.

(9)

The final term does not depend on i;

that is, logit[P(Y=1| X=i)] is identical

at each level of X

Thus, independence implies a model

(10)

An analogous property holds when

J>2.

Differences between two parameters

for a given variable relate to the log odds of making one response,

(11)

Saturated Model

Statistically dependent variables satisfy a more complex loglinear model

The are association terms that reflect deviations from independence.

The represent interactions between X

and Y, whereby the effect of one variable on ij depends on the level of the other

(12)

direct relationships exist between log odds ratios and

(13)

Parameter Estimation

Let {ij} denote expected frequencies.

Suppose all ijk >0 and let ij = log ij .

A dot in a subscript denotes the

average with respect to that index; for instance,

We set

, ,

(14)

The sum of parameters for any index equals zero. That is

(15)

INFERENCE FOR LOGLINEAR MODELS

Chi-Squared Goodness-of-Fit Tests

As usual, X 2 and G2 test whether a model holds

by comparing cell fitted values to observed counts

• Where nijk = observed frequency and =expected

frequency . Here df equals the number of cell counts minus the number of model parameters.

 

 

(16)

Example for Saturated

Model

Sex Party Total

Democrat Republic

Male 222 (204.32) 115 (132.68) 337

Female 240 (257.68) 185 (167.32) 425

Total 462 300 762

Sex Party Total

Democrat Republic

Male Log(204.32) =

5.32 Log(132.68) = 4.89 10.21

Female Log(257.68) =

5.55

Log(167.32) = 5.12

10.67

(17)
(18)
(19)

)=204.38 )=132.95 )=257.24 )=167.34

(20)

Model lengkap tidak sesuai

Referensi

Dokumen terkait

Layanan Pengadaan Secara Elektronik saha seperti SIUP dengan Kualifikasi alatan/suku cadang ukur, survey, g sesuai, SKDU/HO sesuai dengan ng bersangkutan dan

Demikian berita ini dibuat dengan sebenarnya, untuk dipergunakan sebagaimana mestinya.. Pokja

Kepada peserta lelang yang keberatan dengan pengumuman ini diberikan kesempatan untuk menyampaikan sanggahan melalui aplikasi SPSE kepada Pokja IV Unit Layanan

Sekeliling STAIN JURAI SIWO dan Pemb.. Penutup

Peserta seleksi yang telah upload Dokumen Kualifikasi dapat menyampaikan sanggahan secara elektronik melalui aplikasi SPSE atas penetapan hasil kualifikasi kepada Pokja

Sebagian besar sediaan obat diberikan secara oral, baik yang dimaksudkan.. untuk larut dalam mulut maupun

terdapat dalam himpunan lirik lagu Mengaka r ke Bumi Menggapai ke Langit karya Taufiq Ismail, serta mengkaji data dengan menggunakan teori semiotik... Setelah mengkaji

Kera ekor panjang ( Macaca fascicularis ) termasuk satwa yang memiliki daerah adaptasi dengan berbagai habitat termasuk habitat pesisir, hutan rawa, hutan hujan