Hi all,
I am trying to put the day, month and year columns in one column.
So the format is as follows:
day = 1
month = 1
year = 1992
My command is:
gen interview = day, month, year (doesn't work)
gen interview = day/month/year (the variable is in 0.0000939 format)
What could possibly be the reason? Does the type (byte, float, int, double) of the (day, month, year) matter? Do I need to change the format of the day, month, year? Any help will be greatly appreciated.
Related Posts with DATE ***Please help***
Error r(509): matrix operators that return matrices not allowed in this context from xtgeeHello, I estimated a population-averaged model with this code and would like to store the beta coef…
trouble with variable list in egen using macros from loopsHi Folks- The issue I'm having is that when I have a variable list after egen, and the variable lis…
Problem in running loop for regression-industry-yearDear all I'm calculating a variable, that is the residuals from a regression calculated for every i…
Problem generating a new variable based on previous valuesHi all, I'm trying to generate a variable (steponecpn) so that is represents the change in Cumulati…
Propensity scores for multi-valued treatmentI would like to estimate the impact of medium and heavy flooding (compared to noflood) on post-flood…
Subscribe to:
Post Comments (Atom)
0 Response to DATE ***Please help***
Post a Comment