Wen Jun--
I don't really understand your description of the research plan, but
you might want:
g male=gender==1 if !mi(gender)
g pedXfborn=firstborn*par_educ
logit male par_educ, cluster(family_id)
logit male par_educ pedXfborn firstborn, cluster(family_id)
or somesuch.
On Jan 8, 2008 6:48 PM, Wen Jun <[email protected]> wrote:
> Hi All,
>
> I am trying to run some descriptive analyses (i.e. correlations,
> ANOVA) on two children within one family and want to control for the
> dependency of observations. For example, my data include 1000
> families and each family has two children. I want to know the
> correlation between parenatl education and child gender, but want to
> control for the dependency of observation. That is, I don't want to
> correlate parental education and child gender for first and second
> born specifically. I am a SAS user. I have heard that this is possible
> to do in STATA, although I have no idea how to do it. Please give some
> suggestions. Thanks!
*
* 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/