Hello Statalist,
Please forgive me if this is a stupid question; I am new to Stata. I am working with a dataset that has one variable listing the names of businesses and another listing the names of the towns in which the businesses are established. I want to test the business names for whether or not they contain the name of their respective towns. For example, if the name of the business is "Corinth Lumber Co." and the business is in Corinth, I want that to come back positive. Furthermore, I would like to create a binary variable on the same dataset to house the results, with 1 for positive and 0 for negative. Any advice for how I would go about doing this? I really don't know where to start.
Related Posts with Testing to see if the value of categorical variable x for string m contains the value of variable y for string m.
How to model sibling fixed effect?Dear all, I have cross-sectional data that include siblings. Now I need to run an analysis that usi…
Are factor variable values important in regressionI am using data that has negative factor variable values and no value = 0. I am removing the negativ…
Multiple modesHi everyone, I have a dataset that looks like below. For each of the IDs, there are multiple locati…
what did Stata do when we run a regression on unbalaned data?I am learning how to run a difference in difference model, and my code is areg y treat1996-evergm199…
dis inrange(-1,0,1) gives 0 but should give 1I am working with dates of birth of children before the mothers are diagnosed with a disease. In a w…
Subscribe to:
Post Comments (Atom)
0 Response to Testing to see if the value of categorical variable x for string m contains the value of variable y for string m.
Post a Comment