Hello friends,
I am currently using data that has one variable that shows the value of the date, for example, a variable named effective_date shows the value 20120105 means 2012-January-5th. If I only need the value of year (for my analysis purpose, as I need to create an arrival cohort based on years, not the exact date).
Right now I recode it like (20120000/20129999 = 2012), It works, but I am curious is there a way to formate variable just show the first four digitals instead of recoding it?
Please advise
Thanks
Related Posts with Is there a way to format variable?
Extract and store 95%CI after ttestDear statalisters, I would like to know how to extract 95%CI for "diff" (difference in means parame…
Multiple groups, exploratory factor analyses, Tucker's PhiHello, I am trying to assess if the loadings on a latent construct are similar for different ethnic…
Asking about Interpretation for the sign and significance of rho variables derived endogenous switching regression modelDear everyone, I am currently working the impact of integrated aquaculture and agriculture farming …
How to identify same child in two rounds of Survey Data?Hi, I working with a panel data comprising of two rounds- 2005 and 2012. I want to keep the same ch…
Repeated Measures ANOVA test without Greenhouse Geisser and Huynh-Feldt P-valuesArray Array Good Afternoon, I am hoping someone is able to help. I'll try and be as concise as possi…
Subscribe to:
Post Comments (Atom)
0 Response to Is there a way to format variable?
Post a Comment