Bookmark and Share

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]

[no subject]



--------------------------------------------------------------------------------

<>

You can go back and forth between variables and matrices via

*************
help mkmat
*************

But the larger question remains: Why do you want to do this? Also note -h
tabi-.

HTH
Martin


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Wetzel Martin
Sent: Freitag, 18. Juni 2010 11:35
To: [email protected]
Subject: st: chi-square-test in matrix or crosstab

Dear stata-users,

I'm looking for a opportunity to make chi-square-tests of already
acummulated data.
I have something like this

sysuse auto.dta, clear
tab2 rep78 foreign, matcell(A)

matrix list A

and now I want to test this matrix for statistical independence. If the
matrix would always have the same size, I could use William Gould's (2006)*
 mata-strategy, but it's looped over vars, so I could need a more flexible
way.
Has anyone an idea?

Best regards,
Martin


* Gould (2006): Mata Matters: Interactive use. The Stata Journal 6 (3). pp.
387-396.

------------------------------- 
Martin Wetzel 
Institut für Arbeitsmarkt- und Berufsforschung 
der Bundesagentur für Arbeit (IAB) 
Forschungsbereich E3 - Panel "Arbeitsmarkt und Soziale Sicherung" (PASS) 
Regensburger Straße 104 
90478 Nürnberg 
Tel.: 0911 179 8028 
Zimmer: eb-751 




-------------------------------
Martin Wetzel
Institut für Arbeitsmarkt- und Berufsforschung 
der Bundesagentur für Arbeit (IAB)
Forschungsbereich E3 - Panel "Arbeitsmarkt und Soziale Sicherung" (PASS)
Regensburger Straße 104
90478 Nürnberg
Tel.: 0911 179 8028
Zimmer: eb-751


*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index