I imported several csv files with "birthdate" as one of the variables into Stata and then I appended the files to produce one dataset. However, dates from some of the constituent datasets did not show up at all.
To solve this problem, I used the command "tostring birthdate" before appending The hitherto missing dates now show up but as figures, some positive, others negative.
I have tried various manipulations, but these dates do not convert to the actual birthdates from the csv files.
After formatting as dates, they mostly default to 1960 as the birth year. But that is not the birthday in the original file.
Please kindly help me solve this problem.
Related Posts with Dates from Excel/CSV not correctly displaying in Stata
xttabHi, I am busy with creating a word doc with my panel data descriptive statistics. I am using the fo…
GMM sensitivity to model specification and adequacy of the modelHi everyone, I'm analyzing a panel dataframe with T = 17 and 42 groups for a total of about 700 obs…
Shaping graphs using grc1legHi all, I'm making a set of different scatters using the following code: Code: foreach x in phys…
IV-PROBIT with binary endogenous variable and binary instrumentHello There, I am exploring the causal effect of maternal education on child health. My dependent v…
create dataset based on all possible pairs of identifiers within each group in StataHi, I have a dataset that looks like this: Code: * Example generated by -dataex-. To install: ssc…
Subscribe to:
Post Comments (Atom)
0 Response to Dates from Excel/CSV not correctly displaying in Stata
Post a Comment