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
OLS with robust standard errorsHello, I want to perform a multiple linear regression in my model, OLS with robust standard errors.…
justified to do subgroup analysis versus include as covariate/interaction?I successfully ran the below model and created a nice a chart showing trends in gender over time for…
Omiited due to collinearityHello guys, I regressed my model through multiple linear regression. However, Stata omitted two ind…
Panel Data: How can I keep individuals with observations in specific consecutive years?Dear Statalists, I have a panel dataset with a time range (T) from -2 to 4. I would like to keep onl…
Facing problem in generating IDDear Statalist, I am facing kind of strange problem in my STATA. For my research I am using Nationa…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating annual visit using visit date
Post a Comment