Hello,
I have a variable, date that is empty.
and a series of other date variables that contain date data: ecdate bcdate mhdate...
I also have a string variable, prefix, that contains string values such as: ec, bc, mh ...
How can I replace date with the value in one of the other date variables (i.e. ecdate bcdate mhdate...) for rows where the variable name begins with the value of prefix?
I hope I explained clearly enough.
Thank you!
Related Posts with if [varname] = [values]?
Creating a new variable in paneldataDear Stata users, I am new to using STATA and I have searche dthe forum but could not find an answe…
Optimal Lag for Breusch–Godfrey TestDear all, I have a question about the optimal number of lags for the Breusch-Godfrey Test. I have d…
Adding columns with loopHello, I'm having issues with the following. I have 4 variables x1, x2, x3, x4 each one with 10 obs…
Interpreting results of Multinomial Logistic Regression- Panel dataHi All, Its Siege here and I really some help I am running a Multinomial logistic regression model…
Circumvent display in results window and save in a .dta file stataHello, I work with large data sets. When I tab something, sometimes I get the message that there ar…
Subscribe to:
Post Comments (Atom)
0 Response to if [varname] = [values]?
Post a Comment