Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: differences in percentages across categories
From
Mirko Moro <[email protected]>
To
[email protected]
Subject
st: differences in percentages across categories
Date
Fri, 20 Jan 2012 10:46:44 +0000
Dear Statlisters,
Imagine I have 2 categorical variables, say Repair Record in 1978 and
Headroom (suppose I treat Headroom as categorical variable):
. sysuse auto
(1978 Automobile Data)
. tab rep78 headroom, row nofreq
Repair |
Record | Headroom (in.)
1978 | 1.5 2.0 2.5 3.0 3.5
4.0 | Total
-----------+------------------------------------------------------------------+----------
1 | 50.00 50.00 0.00 0.00 0.00
0.00 | 100.00
2 | 0.00 37.50 0.00 0.00 12.50
25.00 | 100.00
3 | 0.00 16.67 16.67 13.33 33.33
10.00 | 100.00
4 | 11.11 5.56 27.78 16.67 11.11
27.78 | 100.00
5 | 0.00 27.27 36.36 36.36 0.00
0.00 | 100.00
-----------+------------------------------------------------------------------+----------
Total | 4.35 18.84 20.29 15.94 18.84
14.49 | 100.00
Repair |
Record | Headroom (in.)
1978 | 4.5 5.0 | Total
-----------+----------------------+----------
1 | 0.00 0.00 | 100.00
2 | 12.50 12.50 | 100.00
3 | 10.00 0.00 | 100.00
4 | 0.00 0.00 | 100.00
5 | 0.00 0.00 | 100.00
-----------+----------------------+----------
Total | 5.80 1.45 | 100.00
I would like to test whether the percentage of car with headroom equal
to 1.5 inch vary across repair records, after that I wish to know
whether the percentage of car with headroom equal to 2.5 inch vary
across repair records, and so on.
Is there a way to do this or I need multinomial models with varying
baseline and reference categories?
Cheers,
Mirko
--
Mirko Moro
Lecturer in Economics
Economics Division
University of Stirling
FK94LA
Scotland (UK)
t: +44(0)1786467479
f: +44(0)1786467469
e: [email protected]
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/