Dear all,
Patient number is a key identifier variable. For example Patients have come for 3 visits, here I want a code to see how many patients have attended all the 3 visits. Hence, I need to generate a new variable with a total number of visits each patient has visited. Also, the dataset is in long format. please see attached example of the query. Thank you
Related Posts with To generate a new variable to subset a dataset based off number of visit a patient has attended
Remove double counting based on multiple criteriaHi all, I have a quite extensive dataset. I included a small part (I have a lot more variables) of …
Propensity score Match and Diff-in-diff AnalysisHi Stata Users, I am a student who is doing the thesis project in Finance. I am using the STATA soft…
xtpmg and mean groupHi all! I am trying to estimate an ARDL Mean Group model but when I enter my code: xtpmg d.EF d.Y d.…
How do we explain intercept parameters for a Weibull survival model?I have been using streg to fit predictive survival models (for time from diagnosis to death) to some…
Issue with dummy variables in mixlogitHello, I am trying to estimate the mixlogit using the below syntax: mixlogit choice distance fac_t…
Subscribe to:
Post Comments (Atom)
0 Response to To generate a new variable to subset a dataset based off number of visit a patient has attended
Post a Comment