Hi there!
I am a rather novice Stata user doing an MPH. I am using Stata 15 IC on Windows 10; my data is in long format.
I am trying to classify visits to a clinic using the date of the visit. I am only interested in annual visits, and the way the visits were captured was for all visits, including interim. Visit 1 for all participants is the enrollment visit, then for some participants visit 2 is 12 months after visit 1 (example 294 below) whilst others visit 2 is 6 months after visit 1 (example 295 below). I have tried to look for an answer on forums and videos, but can't find quite the right approach. I thought to calculate the months since visit 1 and then create categories based on that, but can't figure out how to do that either. Please see example of data below. Any assistance would be greatly appreciated.
Array
Related Posts with Calculating annual visit using visit date
Difference in DifferenceDear Statalist, PFA the dummy data. Here I have the following variables - 1. Cluster ID (cluster_i…
Command outreg2Hi. I have to put in word five different regressions. I want to unify them in an only table. How can…
What is the relationship between a seed and a state of the random number generator?I want to generate N, say N=10, random numbers, then turn off Stata, start a new instance of Stata, …
Substracting the year out of a business calender dateHi everyone, In my dataset I have business calender dates in the format %tbtrdates. I'm trying to e…
Summarizing in a table Code: input price price_Delhi_2007_r price_Delhi_2007_u price_Delhi_2017_r price_Delhi_2017_u price…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating annual visit using visit date
Post a Comment