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
Help With Agricultural Price volatilityHello everyone, I am writing my thesis and I am currently struggling with the codes used to estimate…
Frequency for distributions of t-statisticDear everyone, I have data like this Code: * Example generated by -dataex-. To install: ssc instal…
Use of Operators in recodingHello, I have a large set of data eg 1 2 3....100 101 etc and i want to categories the data into 3 d…
Removing all observations for and individual in a panel when one year has missing values.I have a panel where each individual is recorded over three round - r3, r4, r5. If for instance, an …
Checking goodness of model fit in imputed datasetsHello all Can anyone tell me who to check the goodness of fit between two models in an imputed data…
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