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]

Re: st: CI95% proportion data correlated clustered


From   Steve Samuels <sjsamuels@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: CI95% proportion data correlated clustered
Date   Fri, 21 Feb 2014 17:57:39 -0500

All these work. Here "mkr" is the "subject".

************************
sysuse auto, clear
gen str2 mkr= substr(make,1,2)
prop foreign, cluster(mkr)
prop foreign, vce(cluster mkr)
mean foreign, cluster(mkr)
mean foreign, vce(cluster mkr)
******************************

Steve
sjsamuels@gmail.com



On Feb 21, 2014, at 12:45 PM, Marcos Vinicius <bioestatistico@inbox.com> wrote:

Dear Prof. Ronan
Thanks for the reply.
Please ignore the term incident .The aim is only describe the occurrence of a binary
variable  where we can have more than 1 observation per subject(for some subjects). I would like to know 
a Stata code that could take into account multiple observations when representing a single proportion .(cluster data)
Regards
Vinicius

> -----Original Message-----
> From: rconroy@rcsi.ie
> Sent: Fri, 21 Feb 2014 17:13:02 +0000
> To: statalist@hsphsun2.harvard.edu
> Subject: Re: st: CI95% proportion data correlated clustered
> 
> 
> Prof. Ronan Conroy
> Associate Professor of Biostatistics
> 
> 
> RCSI Department of Epidemiology and Public Health Medicine
> Royal College of Surgeons in Ireland
> Lower Mercer Street, Dublin 2, Ireland
> T: 01-402-2431
> E: rconroy@rcsi.ie  W: www.rcsi.ie
> 
> RCSI DEVELOPING HEALTHCARE LEADERS
> WHO MAKE A DIFFERENCE WORLDWIDE
> On 2014 Feabh 20, at 19:44, Marcos Vinicius wrote:
> 
>> Hello,
>> 
>> 
>> I have a dataset where can be possible that I subject have more than one
>> reported trauma
>> incident . .(example below). I would like only to describe the binary
>> event (trauma) taking into
>> account the correlated data(cluster).
>> I am a Stata beginner . Does anyone know a stata code to conduct that
>> analysis?
>> ID    trauma
>> 1     1
>> 1     0
>> 1     1
>> 1     0
>> 1     1
>> 2     0
>> 2     0
>> 2     1
>> 2     1
>> 3       0
>> 4       1
>> 
> 
> 
> I seems to me that you are recording the incidence density of trauma,
> rather than the cumulative incidence – the data look like repeated
> observation periods on each participant. If this is the case, then the
> incidence density entails summing the events and summing the periods of
> observation, so that each participant is represented by two variables:
> number of events, and number of periods.
> 
> r
> 
> 
>> 
>> ____________________________________________________________
>> FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
>> Check it out at http://www.inbox.com/earth
>> 
>> 
>> 
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/faqs/resources/statalist-faq/
>> *   http://www.ats.ucla.edu/stat/stata/
> 
> Ronán Conroy
> rconroy@rcsi.ie
> Associate Professor
> Division of Population Health Sciences
> Royal College of Surgeons in Ireland
> Beaux Lane House
> Dublin 2
> 
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/

____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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