Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: combine 2 variables

From   Nick Cox <>
To   "" <>
Subject   Re: st: combine 2 variables
Date   Tue, 11 Feb 2014 19:06:33 +0000

Dao Kim:

This is incomprehensible.

"combine": what does that mean?

"Concat" doesn't work. I guess that you tried -egen, concat()- but
what exactly did you try? What do you mean by "doesn't work"?  What
did it do? Why isn't that what you want?

"merge 1:1 id"  -merge- is for merging two or more datasets. That is a
completely different problem from combining two variables.

But forget all that.

What are your variables?

What are your observations?

Please show us an example of your data.

Please show us an example of what you want to get.


On 11 February 2014 18:59, Dao Kim <> wrote:
> Dear Statalists, I try to combine two diagnoses variables to one, for patients that mostly only have 1 diagnosis for seizures etiology, but a minority has 2 etiologies/diagnoses, I can't figure out how to make only one variable. Concat doesn't work, I tried to merge 1:1 id , any idea? Thanks for your help!
> *
> *   For searches and help try:
> *
> *
> *

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index