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)
Using loops to create local from other localsI tell Stata that: Code: local 1 "a b c" local 2 "d e f" local 3 "g h i" and I want it to create t…
Replace observations with another group in Panel dataHi, I have panel data and I want to replace observations of one group with the same variable's obser…
Problem in reporting Arellano-Bond test for auto-correlation after xtabond2Hello dear Stata Users, I am estimating a dynamical panel (370 firms; T=10) where my dependent var i…
Interpreting significance - HLM using REML and Kenward-Roger-corr.Dear Statalisters, I struggle with interpreting my results from multilevel linear regressions, usin…
creating loopHi, I am new in stata, so I am doing long commands for a simple variable generating. I want to short…
Subscribe to:
Post Comments (Atom)
0 Response to Need to calculate age (in years)
Post a Comment