I hope this finds you well.
I kindly need your help to calculate the time difference(Months, Years or Day) in a longitudinal data set where I have patients with recorded visits up to 8 visit. Some patients have up to 3rd visit, 5 visit.. etc. I have date of each visit and I would like to get the time difference between each visit for each patient.
Regards
Humphrey
Related Posts with How to Calculating time difference between visits in a panel data
how to keep month end data from daily data (with various month-ending dates)Dear All, I have a daily data set with different month-ending date (sometime on 27 or 28 or 29 or 30…
If else inside for each loopI am trying to run the following code and it does not seem to be working. I want to change the refer…
ppmlhdfe: lagged dependent variable as a regressorDear all, I am using ppmlhdfe to estimate a gravity model that includes an auto-regressive (AR) ter…
Forming new variable using several existing variablesHi, I am trying to create a variable "IN" that takes value from existing variables "IN_1 IN_2 IN_3 I…
Different results between Heckman model and separate probit + OLSDear Statalist I'm running a Heckman model and I wanted to compare the results of the Heckman model…
Subscribe to:
Post Comments (Atom)
0 Response to How to Calculating time difference between visits in a panel data
Post a Comment