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
collapse string?Dear All, II find this question here (https://bbs.pinggu.org/forum.php?mod...=1#pid58387315). The da…
postestimation, predict, and pweightsHi, I use the following regression: Code: reg y x i.time [pweight=weight], r predict yhat, xb by…
Analysing Life Satisfaction after Averaging and Collapsing in two CategoriesDear all, for a project I want to examine the relationship between objective city-indicators and li…
Lag for Survival Analysis (Discrete hazard proportional odd)Dear Statalists, To control for endogeneity, can I use the Lag for the Discrete hazard proportional…
Interpreting Fisher-type unit root tests in panel dataHello, I have an unbalanced panel data set consisting of N=25,102 and T between 1-35 years (on aver…
Subscribe to:
Post Comments (Atom)
0 Response to how to deal with duplicates when creating propoprtions
Post a Comment