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
Margins for semiparametric regressionHello, I'm trying to estimate a semi-parametric regression model with (1) a continuous and a catego…
data calculation.Dear All, Suppose that I have the following data Code: * Example generated by -dataex-. To install:…
Analyst Forecast DispersionHi All I am a beginner with Stata and am working with analyst data downloaded from IBES. I am using…
How to calculate the annualized three-month rolling sample standard deviation (based on the actual trading days)?Dear stata users, I' m following the Campbell et al.(2008) to calculate the failure probability of …
Summary table (F, df) for Mixed ModelsHello, I'm new to Stata and I'm trying to obtain a summary table for a mixed model as shown in the e…
Subscribe to:
Post Comments (Atom)
0 Response to Dates from Excel/CSV not correctly displaying in Stata
Post a Comment