Statalist


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

Re: st: summary stats at different levels


From   "krishanu karmakar" <krishkarmakar@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: summary stats at different levels
Date   Wed, 13 Feb 2008 19:56:28 +0530

You are saying that each family marked with code (say the variable is
familycode). So the same code is repeated for all the individuals
coming from the same family, is not it? Seems that the family level
characteristics are also repeated for each individual coming from the
same family.

In that case you can use
duplicates drop familycode, force

Then estimate the summary statistics for the families.

If you use this command within some do file where you would like to
use the entire dataset subsequently then use -preserve- and -restore-
along with this command

Regards
Krishanu

On Feb 13, 2008 7:47 PM, Daniel Macneil <macneida@gse.harvard.edu> wrote:
> Folks,
>
> I have data arranged by 1000 individuals who come from 700 families. How can i do the basic
> summary stats on the family level(each family is marked with code), rather than the individuals? I
> am using xtlogit for my analysis, and that works fine, but the simpler task of getting the
> descriptive stats at the family level is perplexing me.
>
> James
>
> On Tue, 12 Feb 2008 19:27:02 -0000
>   Bidisha Sayema <lexshb@nottingham.ac.uk> wrote:
> > Dear Satalisters,
> >
> > I am using a two sample two stage least square method which essentially
> > involves getting predicted value of one of the explanatory variables
> > from one sample and then using that predicted value in another sample to
> > estimate the final regression. Therefore in my 1st sample I have the
> > explanatory variable X and instruments Zs and in 2nd sample I don't have
> > X but I have the dependent variable Y and same instrument set Z. In my
> > 1st stage I estimate model of X while regressing X on Zs. In the 2nd
> > stage I use the coefficients of Zs obtained from the 1st stage
> > regression with the values of Zs available in the 2nd sample to get a
> > predicted value of Xhat. This Xhat is used as a regressor in my final
> > regression of Y. However as I am using predicted value of Xhat in my
> > final regression, I need to correct the standard errors manually. It
> > would be greatly appreciated if someone inform me how to do it in STATA.
> >
> > Regards
> > Bidisha
> > *ps: I am having problem while receiving mails from statalist therefore
> > it would be appreciated if you also reply to the other address in this
> > mail.
> >
> > This message has been checked for viruses but the contents of an attachment
> > may still contain software viruses, which could damage your computer system:
> > you are advised to perform your own checks. Email communications with the
> > University of Nottingham may be monitored as permitted by UK legislation.
> >
> >
> >
> > *
> > *   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/
>
> D. James MacNeil
> Doctoral Candidate
> Harvard Graduate School of Education
> macneida@gse.harvard.edu
> *
> *   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/
>



-- 
Read it: http://www.stata.com/support/faqs/res/statalist.html
Specially Question 3.
*
*   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