Diff for "FAQ/ChiTrend" - CBU statistics Wiki
location: Diff for "FAQ/ChiTrend"
Differences between revisions 7 and 32 (spanning 25 versions)
Revision 7 as of 2006-08-17 14:16:23
Size: 2660
Editor: PeterWatson
Comment:
Revision 32 as of 2013-04-12 14:15:55
Size: 3495
Editor: PeterWatson
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== Linear trend test on proportions ==
Line 11: Line 13:
The chi-square testing the presence of a linear trend is outputted by SPSS CROSSTABS as the Linear-by-Linear association term. The lack of fit is the difference between the Pearson chi-square value and the linear-by-linear one. The chi-square testing the presence of a linear trend is outputted by SPSS CROSSTABS as the Linear-by-Linear association term ( also called the Mantel-Haenszel statistic).

Linear-by-linear association = $$r^text{2} (N-1)$$

where r is the Pearson correlation of the rows (correct/incorrect) with the columns (group) and N is the total sample size.

The lack of fit is the difference between the Pearson chi-square value and the linear-by-linear one.
Line 19: Line 27:
So there is a linear trend providing a reasonable fit. So there is a linear trend providing a reasonable fit. 
Line 22: Line 30:
Denoting the time points by –1,0 and 1 and regressing these on the observed proportions correct gives regression estimates of the above linear trend  Denoting the time points by –1,0 and 1 and regressing these on the observed proportions correct give regression estimates of the above linear trend. The Pearson chi-square lack of fit term is (O-E)*(O-E)/E where O are observed table frequencies and E are expected frequencies using the expected proportions from the linear regression.
Line 25: Line 33:
||||||||<25% style="VERTICAL-ALIGN: top"> Observed proportion correct ||<25% style="VERTICAL-ALIGN: top"> 0.33 ||<25% style="VERTICAL-ALIGN: top"> 0.50 ||<25% style="VERTICAL-ALIGN: top"> 0.83 ||
||||||||<25% style="VERTICAL-ALIGN: top"> Expected proportion correct ||<25% style="VERTICAL-ALIGN: top"> 0.30 ||<25% style="VERTICAL-ALIGN: top"> 0.55 ||<25% style="VERTICAL-ALIGN: top"> 0.80 ||
(Fitting a linear trend) ||<25% style="VERTICAL-ALIGN: top"> ||<25% style="VERTICAL-ALIGN: top"> ||<25% style="VERTICAL-ALIGN: top"> ||
||||||||<70% style="VERTICAL-ALIGN: top"> Observed proportion correct ||<10% style="VERTICAL-ALIGN: top"> 0.33 ||<10% style="VERTICAL-ALIGN: top"> 0.50 ||<10% style="VERTICAL-ALIGN: top"> 0.83 ||
||||||||<70% style="VERTICAL-ALIGN: top"> Expected proportion correct ||<10% style="VERTICAL-ALIGN: top"> 0.30 ||<10% style="VERTICAL-ALIGN: top"> 0.55 ||<10% style="VERTICAL-ALIGN: top"> 0.80 ||
||||||||<70% style="VERTICAL-ALIGN: top"> (Fitting a linear trend) ||<10% style="VERTICAL-ALIGN: top"> ||<10% style="VERTICAL-ALIGN: top"> ||<10% style="VERTICAL-ALIGN: top"> ||
Line 29: Line 37:
You can also compare linear trends of proportions in [[FAQ/poly| SPSS LOGISTIC.]]

'''References:'''

Agresti, A (2013) Categorical Data Analysis. Third Edition. Wiley:New York. Pages 86-87 mention the above testing for linear trend.

Everitt, BS and Wykes T.(1999) A Dictionary for Psychologists. Arnold:London. (See page 31).

Linear trend test on proportions

A more powerful form of chi-square specifically tests for a linear trend in proportions across groups. For example, proportion remembered correctly using a memory aid.

Example

Time 1

Time 2

Time 3

Correct

3

6

10

Incorrect

9

6

2

Does the proportion correct change linearly over time?

The chi-square testing the presence of a linear trend is outputted by SPSS CROSSTABS as the Linear-by-Linear association term ( also called the Mantel-Haenszel statistic).

Linear-by-linear association = $$r^text{2} (N-1)$$

where r is the Pearson correlation of the rows (correct/incorrect) with the columns (group) and N is the total sample size.

The lack of fit is the difference between the Pearson chi-square value and the linear-by-linear one.

Model

Chi-square

Df

p-value

Linear

7.96

1

0.005

Lack of Fit

0.29

1

0.130

Total

8.25

2

0.004

(Pearson Chi-square)

So there is a linear trend providing a reasonable fit.

Denoting the time points by –1,0 and 1 and regressing these on the observed proportions correct give regression estimates of the above linear trend. The Pearson chi-square lack of fit term is (O-E)*(O-E)/E where O are observed table frequencies and E are expected frequencies using the expected proportions from the linear regression.

Observed proportion correct

0.33

0.50

0.83

Expected proportion correct

0.30

0.55

0.80

(Fitting a linear trend)

You can also compare linear trends of proportions in SPSS LOGISTIC.

References:

Agresti, A (2013) Categorical Data Analysis. Third Edition. Wiley:New York. Pages 86-87 mention the above testing for linear trend.

Everitt, BS and Wykes T.(1999) A Dictionary for Psychologists. Arnold:London. (See page 31).

None: FAQ/ChiTrend (last edited 2013-08-28 10:47:50 by PeterWatson)