Dear members,
I have a question related to the topic of comparing string variables and extracting string variables. I have the following two variables and example data:
Email1 | Email2
maja.li@hhh.com,andi.ko@ff.de,adam.o@gji.com | maja.li@hhh.com,andi.ko@ff.de
chris@kkk.com,david.r@fffff.com,karla.llll@dddd.fr | karla.llll@dddd.fr
I’d like to create a third variable, that indicates specifically which email addresses are present in var:Email1, but not in var:Email2. For the above stated data, this would be (Var3):
Email1 | Email2 | Var3
maja.li@hhh.com,andi.ko@ff.de,adam.o@gji.com | maja.li@hhh.com,andi.ko@ff.de | adam.o@gji.com
chris@kkk.com,david.r@fffff.com,karla.llll@dddd.fr | karla.llll@dddd.fr | chris@kkk.com,david.r@fffff.com
Is this even possible, and if so, how can I accomplish this?
All variables are string variables and the email addresses are separated by a comma (no space character between them). I am using Stata 12.
Thank you very much in advance.
Maja
Related Posts with Comparing string variables and extracting string variables
Interpretation of Intraclass Correlation after Multilevel ModelI have used the postestimation command "estat icc" to estimate intracorrelation coefficients after t…
Finding interrater reliabilityHello! I asked a related question a few weeks ago and really appreciate the help I got; I now unders…
Nested logit with panel data?Hi all, I have data from a discrete choice experiment in which respondents were shown 12 choice tas…
Augmented gravity model Bilateral trade determinants of OECD countries using linear and non-linear estimation methods.Hello everyone, this is my first time posting on this forum. I'm a master student in economics writ…
Panel Extension to Moran's I Test?I have a panel dataset (data from provinces over time) and I want to determine whether values of a g…
Subscribe to:
Post Comments (Atom)
0 Response to Comparing string variables and extracting string variables
Post a Comment