Hi!
I am very new to STATA. I have seen you answer different questions regarding date-variables. Hopefully you can help me with this:
I want to merge two variables:
v1=numeric yyyymmdd variable
v2=string yyyy-mm-dd variable
-->
newdatevariable=v1
replace newdatevariable=v2
if v2<v1 or missing(v1)
Kind regards,
Jenna Najar
Related Posts with Create a new variable based on a date string variable yyyy-mm-dd and a numeric variable (yyyymmdd)
Filling in unobserved dates with past valuesI have data that looks something like this: Array It is market cap data for different companies, s…
If a Generated Regressor X is orthogonal to a non-generated regressor W, would the variance and tests on W be correct?Good morning, Professor Jeff Wooldridge or anybody else who knows the answer, or has encountered th…
Using splitvallabels + catplot without over optionDear all, When creating graphs I often use splitvallabels to break up longer labels on the y axis. …
Can you propose a graph on which I can compare a couple of Uniform distributions?Good morning, Nick Cox or anybody else with interests in graphing: Can you please propose a graph w…
How to make A new Id'sHello everyone, I need help with making a new Id that will solve my table so basically, I have data…
Subscribe to:
Post Comments (Atom)
0 Response to Create a new variable based on a date string variable yyyy-mm-dd and a numeric variable (yyyymmdd)
Post a Comment