Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Pearson Goodness of Fit


From   "Nikolaos Kanellopoulos" <nkkanel@yahoo.gr>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Pearson Goodness of Fit
Date   Sun, 16 Jul 2006 15:31:18 +0100

Dear list,

I want to estimate the Pearson Goodness of fit after a Random Effects
Probit. To do that I need to count the frequencies of each sequence that my
actual variable (y) and its prediction (yhat)have.

For instance in the following example y takes 3 sequences by id and t 0001,
0000, 0011 with frequencies 2 ,1, 1 respectively and yhat takes 0001, 0000,
1000, 0011 each with frequency 1. My problem is that I can't count the
different sequences that y and yhat follow.

Any help is more than welcome.

Regards
Nikos

	+-------------------+
	id   t   y   yhat 
	-------------------
1.	1   1   0      0 
2.	1   2   0      0 
3.	1   3   0      0 
4.	1   4   1      1 
5.	2   1   0      0 
	-------------------
6.	2   2   0      0 
7.	2   3   0      0 
8.	2   4   1      0 
9.	3   1   0      1 
10.	3   2   0      0 
	-------------------
11.	3   3   0      0 
12.	3   4   0      0 
13.	4   1   0      0 
14.	4   2   0      0 
15.	4   3   1      1 
	-------------------
16.	4   4   1      1 
	+-------------------+

__________________________________________________
Χρησιμοποιείτε Yahoo!;
Βαρεθήκατε τα ενοχλητικά μηνύματα (spam);   Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων  
http://mail.yahoo.gr 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index