Hi All,
I hope I explain this clearly and with enough information, please let me know if I can provide more information. I need to calculate age (in years) for summary statistics. I have the 'dob' variable in a format such as 08/13/1950 and the 'medicationscantime' variable as 11/25/2000 8:45:00PM. How do I subtract 'medicationscantime' from 'dob' to get age in years? I have STATA 15.1
Related Posts with Need to calculate age (in years)
Difference in Difference in Matching by incorporating geographical fixed effectsDear All, I would like to ask about matching. If I have a panel data and I want to run Difference i…
Option for mass replace instead of manually replacing many string variablesHello Statalisters, I want to merge two datasets using two string identifiers i.e. name of state an…
Netherlands coordinates not matching when reverse geomatchingHello, I am using the 'geoinpoly' package to extract countries from coordinates. The data I am usin…
Conformability error, r(503)Hi. I've been getting the conformability error r(503) on running the code below. Obviously my matrix…
how to create a factor variable in this case? and what is a threshold?Create factor variable “pop_fact” out of population, consisting of three categories: low populated, …
Subscribe to:
Post Comments (Atom)
0 Response to Need to calculate age (in years)
Post a Comment