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)
Returning to variable window after outreg2 (seeout) in Stata 16.I have noticed a slight change in Stata 16 after I "seeout" my regression output after "outreg2". Be…
Plotting Interactions after xtregHello everyone, I am currently struggling to create a graph to visualize the moderation effect in m…
System GMM: does it includes fixed effects?Hello everyone, I have a panel of 97 countries over 18 years and I would like to estimate a model wi…
Help with stata codes to generate weights in a household surveyHi, I have two files: Central file (state1) and State file (state 1). I have to generate pooled est…
Standard deviation of industry-adjusted return on assets over five yearsDear STATA experts, My sample consists of firm-year observations panel with unbalanced data over th…
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