Hi,
I would like to extract a date from Excel in MM/DD/YYYY format which is located in cell B2, convert it in a Stata monthly date "YYYYmMM" and put in as input in a global macro variable in Stata as monthly date, month and year:
global mdate ...
global month ...
global year ...
Anyone can help? Thanks a lot in advance.
Related Posts with Extract date from Excel as input in global macro
variables generate with expand are not unique to duplicated observationsHello everyone, I'm working on my thesis using Stata 16, I've been using it a bit in the past but I…
How to generate group idHi, I am importing a household data from excel, and data set does not have a proper id variable, and…
Margins options with probitHello I am regressing math proficiency (binary) on private tutoring expenditure and school type (pr…
Group based on unordered stringsHere comes an easy one... I have two variables with country names and want to create an identifier f…
Combining 2 coefplots (based on margins from linear regression models) to have a panel graphHi All I've produced the below two graphs using coefplot (graphs are based on margins produced afte…
Subscribe to:
Post Comments (Atom)
0 Response to Extract date from Excel as input in global macro
Post a Comment