Dear all,
I need your valuable help and advice in the following please:
I have the following data , in which subject-id may have several visits dates and types (could be either screening , sampling or repeat sampling) and they may have different or same disease stage at each visit.
I want to answer the following question: how many subjects had disease stage 1 at their first visit ?
( so basically I want stata to only consider first visit only when calculating the proportion of certain disease category without having to drop the other observations)
Subject-id visit-date visit-name disease-stage
001 01/01/2017 screening 1
001 10/02/2018 sampling 1
001 01/01/2019 screening 1
001 05/06/2019 rep sampling 1
002 13/11/2016 screening 4
002 20/12/2016 sampling 4
003 09/04/206 screening 3
003 10/04/2016 sampling 4
004 11/05/2019 screening 2
TIA
Related Posts with how to deal with duplicates when creating propoprtions
Do the regression for only one company each and saving them to an excel/doc (ASDOC)Hi everybody, I do have a panel dataset where every company has a unique ID (-company-) and their r…
Panel DataHey everyone, I'm fairly new to using Stata, so im still getting use to everything. I am using unbal…
Mean of a variable by multiple variables in the same tableHi. In my data there are 20 variables (var1- var20) which are deciles created based on different fa…
merging multiple excel file from a folder using key variable household id and monthI have many excel files in a folder and each data file contains variable VDS_ID and SUR_MON_YR. I wa…
CONSORT DiagramDear Statalist, Is is possible to create a CONSORT flow diagram in stata without specifying the coo…
Subscribe to:
Post Comments (Atom)
0 Response to how to deal with duplicates when creating propoprtions
Post a Comment